summaryrefslogtreecommitdiff
path: root/keyboards/clueboard
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-10-17 17:48:58 +0100
committerGitHub <noreply@github.com>2019-10-17 17:48:58 +0100
commitabfd6ed9613013d3c9f15da8b575a902d9bcf274 (patch)
tree8f2a4601586a7bc67f5f684e0d07b41e9608f3b3 /keyboards/clueboard
parente3a21348c3879c11072c7c42d3b4d04b022f4fe2 (diff)
Move tmk_core/common/backlight to quantum/backlight (#6710)
* Move tmk_core/common/backlight to quantum/backlight * Add guards to backlight inclusion * Add guards to backlight inclusion * Update backlight guards on clueboard/60 * Use full paths to avoid vpath issues
Diffstat (limited to 'keyboards/clueboard')
-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 350696736b..91a2c537dc 100644
--- a/keyboards/clueboard/60/led.c
+++ b/keyboards/clueboard/60/led.c
@@ -16,21 +16,21 @@
*/
#include "hal.h"
-#include "backlight.h"
#include "led.h"
#include "printf.h"
+#ifdef BACKLIGHT_ENABLE
+#include "backlight.h"
+
void backlight_init_ports(void) {
printf("backlight_init_ports()\n");
- #ifdef BACKLIGHT_ENABLE
+
palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL);
palSetPad(GPIOB, 8);
- #endif
}
void backlight_set(uint8_t level) {
printf("backlight_set(%d)\n", level);
- #ifdef BACKLIGHT_ENABLE
if (level == 0) {
// Turn backlight off
palSetPad(GPIOB, 8);
@@ -38,8 +38,8 @@ void backlight_set(uint8_t level) {
// Turn backlight on
palClearPad(GPIOB, 8);
}
- #endif
}
+#endif
void led_set_kb(uint8_t usb_led) {
printf("led_set_kb(%d)\n", usb_led);