Remove UHK_PCB_MAJOR_VERSION macro from the right firmware and default to v7.
This commit is contained in:
@@ -7,21 +7,12 @@
|
||||
|
||||
// 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user