diff options
| -rw-r--r-- | keyboard/planck/Makefile | 11 | ||||
| -rw-r--r-- | keyboard/planck/keymaps/default/keymap.c | 3 | ||||
| -rw-r--r-- | tmk_core/common.mk | 1 |
3 files changed, 5 insertions, 10 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile index dc6e46df2..693e9c8aa 100644 --- a/keyboard/planck/Makefile +++ b/keyboard/planck/Makefile | |||
| @@ -107,6 +107,10 @@ endif | |||
| 107 | 107 | ||
| 108 | SRC := $(KEYMAP_FILE) $(SRC) | 108 | SRC := $(KEYMAP_FILE) $(SRC) |
| 109 | 109 | ||
| 110 | ifeq ($(BACKLIGHT_ENABLE), yes) | ||
| 111 | SRC := backlight.c $(SRC) | ||
| 112 | endif | ||
| 113 | |||
| 110 | CONFIG_H = config.h | 114 | CONFIG_H = config.h |
| 111 | 115 | ||
| 112 | # MCU name | 116 | # MCU name |
| @@ -126,7 +130,6 @@ MCU = atmega32u4 | |||
| 126 | # software delays. | 130 | # software delays. |
| 127 | F_CPU = 16000000 | 131 | F_CPU = 16000000 |
| 128 | 132 | ||
| 129 | |||
| 130 | # | 133 | # |
| 131 | # LUFA specific | 134 | # LUFA specific |
| 132 | # | 135 | # |
| @@ -158,12 +161,6 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||
| 158 | # USBaspLoader 2048 | 161 | # USBaspLoader 2048 |
| 159 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | 162 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 |
| 160 | 163 | ||
| 161 | |||
| 162 | ifeq ($(BACKLIGHT_ENABLE), yes) | ||
| 163 | SRC += backlight.c | ||
| 164 | endif | ||
| 165 | |||
| 166 | |||
| 167 | # Optimize size but this may cause error "relocation truncated to fit" | 164 | # Optimize size but this may cause error "relocation truncated to fit" |
| 168 | #EXTRALDFLAGS = -Wl,--relax | 165 | #EXTRALDFLAGS = -Wl,--relax |
| 169 | 166 | ||
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c index 97ba5d285..151a6b4f4 100644 --- a/keyboard/planck/keymaps/default/keymap.c +++ b/keyboard/planck/keymaps/default/keymap.c | |||
| @@ -2,9 +2,6 @@ | |||
| 2 | // this is the style you want to emulate. | 2 | // this is the style you want to emulate. |
| 3 | 3 | ||
| 4 | #include "planck.h" | 4 | #include "planck.h" |
| 5 | #ifdef BACKLIGHT_ENABLE | ||
| 6 | #include "backlight.h" | ||
| 7 | #endif | ||
| 8 | #include "action_layer.h" | 5 | #include "action_layer.h" |
| 9 | #ifdef AUDIO_ENABLE | 6 | #ifdef AUDIO_ENABLE |
| 10 | #include "audio.h" | 7 | #include "audio.h" |
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index 8d028d52a..030767cc3 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk | |||
| @@ -69,6 +69,7 @@ endif | |||
| 69 | 69 | ||
| 70 | ifeq ($(BACKLIGHT_ENABLE), yes) | 70 | ifeq ($(BACKLIGHT_ENABLE), yes) |
| 71 | SRC += $(COMMON_DIR)/backlight.c | 71 | SRC += $(COMMON_DIR)/backlight.c |
| 72 | SRC += $(COMMON_DIR)/avr/eeconfig.c | ||
| 72 | OPT_DEFS += -DBACKLIGHT_ENABLE | 73 | OPT_DEFS += -DBACKLIGHT_ENABLE |
| 73 | endif | 74 | endif |
| 74 | 75 | ||
