Change the merge sensor pin for the v7 PCB.

This commit is contained in:
László Monda
2017-01-05 21:02:28 +01:00
parent fb79862cee
commit f76d17279e

View File

@@ -7,12 +7,21 @@
// Macros:
#if UHK_PCB_MAJOR_VERSION == 7
#define MERGE_SENSOR_GPIO GPIOB
#define MERGE_SENSOR_PORT PORTB
#define MERGE_SENSOR_CLOCK kCLOCK_PortB
#define MERGE_SENSOR_PIN 3
#define MERGE_SENSOR_IRQ PORTB_IRQn
#define MERGE_SENSOR_IRQ_HANDLER PORTB_IRQHandler
#else
#define MERGE_SENSOR_GPIO GPIOB
#define MERGE_SENSOR_PORT PORTB
#define MERGE_SENSOR_CLOCK kCLOCK_PortB
#define MERGE_SENSOR_PIN 2
#define MERGE_SENSOR_IRQ PORTB_IRQn
#define MERGE_SENSOR_IRQ_HANDLER PORTB_IRQHandler
#endif
#define MERGE_SENSOR_IS_MERGED !GPIO_ReadPinInput(MERGE_SENSOR_GPIO, MERGE_SENSOR_PIN)