Make bidirectional communication work between the keyboard halves. Make the set test LED USB command set the test LED of the left half, too.
This commit is contained in:
@@ -10,13 +10,14 @@
|
||||
#define LOGIC_LED_ON 0U
|
||||
#define LOGIC_LED_OFF 1U
|
||||
|
||||
#define TEST_LED_GPIO GPIOA
|
||||
#define TEST_LED_PORT PORTA
|
||||
#define TEST_LED_CLOCK kCLOCK_PortA
|
||||
#define TEST_LED_PIN 12
|
||||
#define TEST_LED_GPIO GPIOA
|
||||
#define TEST_LED_PORT PORTA
|
||||
#define TEST_LED_CLOCK kCLOCK_PortA
|
||||
#define TEST_LED_PIN 12
|
||||
|
||||
#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_TOGGLE() GPIO_TogglePinsOutput(TEST_LED_GPIO, 1U << TEST_LED_GPIO_PIN)
|
||||
|
||||
// Functions:
|
||||
|
||||
Reference in New Issue
Block a user