aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clueboard/60/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/60/led.c')
-rw-r--r--keyboards/clueboard/60/led.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/keyboards/clueboard/60/led.c b/keyboards/clueboard/60/led.c
index fdf244ad5..350696736 100644
--- a/keyboards/clueboard/60/led.c
+++ b/keyboards/clueboard/60/led.c
@@ -23,7 +23,7 @@
23void backlight_init_ports(void) { 23void backlight_init_ports(void) {
24 printf("backlight_init_ports()\n"); 24 printf("backlight_init_ports()\n");
25 #ifdef BACKLIGHT_ENABLE 25 #ifdef BACKLIGHT_ENABLE
26 palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL); 26 palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL);
27 palSetPad(GPIOB, 8); 27 palSetPad(GPIOB, 8);
28 #endif 28 #endif
29} 29}
@@ -41,13 +41,8 @@ void backlight_set(uint8_t level) {
41 #endif 41 #endif
42} 42}
43 43
44void led_init_ports() {
45 printf("led_init_ports()\n");
46 palSetPadMode(GPIOB, 7, PAL_MODE_OUTPUT_PUSHPULL);
47}
48
49void led_set_kb(uint8_t usb_led) { 44void led_set_kb(uint8_t usb_led) {
50 printf("led_init_ports()\n"); 45 printf("led_set_kb(%d)\n", usb_led);
51 if (usb_led & (1<<USB_LED_CAPS_LOCK)) { 46 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
52 // Turn capslock on 47 // Turn capslock on
53 palSetPad(GPIOB, 7); 48 palSetPad(GPIOB, 7);