Refactor to use led config - Part 4 (#10967)
* Refactor to use led config * Refactor to use led_update_kb
This commit is contained in:
parent
23222625c2
commit
95fd2ce81a
15 changed files with 36 additions and 230 deletions
|
@ -16,7 +16,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "led.h"
|
||||
#include "printf.h"
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@ -40,14 +39,3 @@ void backlight_set(uint8_t level) {
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
printf("led_set_kb(%d)\n", usb_led);
|
||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||
// Turn capslock on
|
||||
palSetPad(GPIOB, 7);
|
||||
} else {
|
||||
// Turn capslock off
|
||||
palClearPad(GPIOB, 7);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue