From 8748b6080f0254d59df6549443162b16daa5f5fc Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Wed, 7 May 2014 11:39:07 +0900 Subject: [PATCH] Fix some definition and declaration --- common/keyboard.c | 1 + keyboard/gh60/backlight.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/common/keyboard.c b/common/keyboard.c index 29155cfe..6b3f6427 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -31,6 +31,7 @@ along with this program. If not, see . #include "bootmagic.h" #include "eeconfig.h" #include "backlight.h" +#include "breathing_led.h" #include "keymap_ex.h" #ifdef MOUSEKEY_ENABLE # include "mousekey.h" diff --git a/keyboard/gh60/backlight.c b/keyboard/gh60/backlight.c index 4c96d041..3a8f6c0e 100644 --- a/keyboard/gh60/backlight.c +++ b/keyboard/gh60/backlight.c @@ -21,6 +21,12 @@ along with this program. If not, see . #include "backlight.h" #include "breathing_led.h" +#ifdef BACKLIGHT_ENABLE + +void backlight_enable(void); +void backlight_disable(void); +inline void backlight_set_raw(uint8_t raw); + #ifdef GH60_REV_CHN #else #define SOFTPWM_TIMER_TOP F_CPU/(256*64) @@ -149,3 +155,5 @@ ISR(TIMER1_COMPA_vect) } } #endif + +#endif