Remove UHK_PCB_MAJOR_VERSION macro conditionals and default to v7.
This commit is contained in:
@@ -10,22 +10,11 @@
|
||||
#define LOGIC_LED_ON 0U
|
||||
#define LOGIC_LED_OFF 1U
|
||||
|
||||
#if UHK_PCB_MAJOR_VERSION >= 7
|
||||
|
||||
#define TEST_LED_GPIO GPIOB
|
||||
#define TEST_LED_PORT PORTB
|
||||
#define TEST_LED_CLOCK kCLOCK_PortB
|
||||
#define TEST_LED_PIN 13
|
||||
|
||||
#else
|
||||
|
||||
#define TEST_LED_GPIO GPIOA
|
||||
#define TEST_LED_PORT PORTA
|
||||
#define TEST_LED_CLOCK kCLOCK_PortA
|
||||
#define TEST_LED_PIN 12
|
||||
|
||||
#endif
|
||||
|
||||
#define TEST_LED_ON() GPIO_SetPinsOutput(TEST_LED_GPIO, 1U << TEST_LED_PIN)
|
||||
#define TEST_LED_OFF() GPIO_ClearPinsOutput(TEST_LED_GPIO, 1U << TEST_LED_PIN)
|
||||
#define TEST_LED_SET(state) GPIO_WritePinOutput(TEST_LED_GPIO, TEST_LED_PIN, (state))
|
||||
|
||||
Reference in New Issue
Block a user