Remove UHK_PCB_MAJOR_VERSION macro from the right firmware and default to v7.

This commit is contained in:
László Monda
2017-05-23 02:29:19 +02:00
parent 2b08775e4e
commit b039afc37a
4 changed files with 0 additions and 32 deletions

View File

@@ -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)