Fix the state transfer of the test LED.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#define LOGIC_LED_ON 0U
|
||||
#define LOGIC_LED_OFF 1U
|
||||
|
||||
#if UHK_PCB_MAJOR_VERSION == 7
|
||||
#if UHK_PCB_MAJOR_VERSION >= 7
|
||||
|
||||
#define TEST_LED_GPIO GPIOB
|
||||
#define TEST_LED_PORT PORTB
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#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))
|
||||
#define TEST_LED_SET(state) GPIO_WritePinOutput(TEST_LED_GPIO, TEST_LED_PIN, (state))
|
||||
#define TEST_LED_TOGGLE() GPIO_TogglePinsOutput(TEST_LED_GPIO, 1U << TEST_LED_PIN)
|
||||
|
||||
// Functions:
|
||||
|
||||
Reference in New Issue
Block a user