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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/clueboard/60/led.c b/keyboards/clueboard/60/led.c
index 350696736..91a2c537d 100644
--- a/keyboards/clueboard/60/led.c
+++ b/keyboards/clueboard/60/led.c
@@ -16,21 +16,21 @@
16*/ 16*/
17 17
18#include "hal.h" 18#include "hal.h"
19#include "backlight.h"
20#include "led.h" 19#include "led.h"
21#include "printf.h" 20#include "printf.h"
22 21
22#ifdef BACKLIGHT_ENABLE
23#include "backlight.h"
24
23void backlight_init_ports(void) { 25void backlight_init_ports(void) {
24 printf("backlight_init_ports()\n"); 26 printf("backlight_init_ports()\n");
25 #ifdef BACKLIGHT_ENABLE 27
26 palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL); 28 palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL);
27 palSetPad(GPIOB, 8); 29 palSetPad(GPIOB, 8);
28 #endif
29} 30}
30 31
31void backlight_set(uint8_t level) { 32void backlight_set(uint8_t level) {
32 printf("backlight_set(%d)\n", level); 33 printf("backlight_set(%d)\n", level);
33 #ifdef BACKLIGHT_ENABLE
34 if (level == 0) { 34 if (level == 0) {
35 // Turn backlight off 35 // Turn backlight off
36 palSetPad(GPIOB, 8); 36 palSetPad(GPIOB, 8);
@@ -38,8 +38,8 @@ void backlight_set(uint8_t level) {
38 // Turn backlight on 38 // Turn backlight on
39 palClearPad(GPIOB, 8); 39 palClearPad(GPIOB, 8);
40 } 40 }
41 #endif
42} 41}
42#endif
43 43
44void led_set_kb(uint8_t usb_led) { 44void led_set_kb(uint8_t usb_led) {
45 printf("led_set_kb(%d)\n", usb_led); 45 printf("led_set_kb(%d)\n", usb_led);