Add API for the merge sensor.

This commit is contained in:
László Monda
2016-10-17 23:06:09 +02:00
parent cb7c4d68dd
commit 2d31c3e5ce
3 changed files with 33 additions and 0 deletions

8
right/src/merge_sensor.c Normal file
View File

@@ -0,0 +1,8 @@
#include "merge_sensor.h"
#include "fsl_port.h"
void InitMergeSensor() {
CLOCK_EnableClock(MERGE_SENSOR_CLOCK);
PORT_SetPinConfig(MERGE_SENSOR_PORT, MERGE_SENSOR_PIN,
&(port_pin_config_t){.pullSelect=kPORT_PullUp, .mux=kPORT_MuxAsGpio});
}