diff options
author | Yang Liu <i@yangliu.name> | 2016-01-24 17:05:47 -0800 |
---|---|---|
committer | Yang Liu <i@yangliu.name> | 2016-01-24 17:05:47 -0800 |
commit | ba9ac457b2159097ecfd9848c5171c52e3a68260 (patch) | |
tree | 3e24c67dcac80ea1628caf9f1791f8296fa89c2e /quantum/quantum.mk | |
parent | 0a40654b82520849fcc587e8fb76c823378649a6 (diff) |
Integrate WS2812 code into quantum core
Diffstat (limited to 'quantum/quantum.mk')
-rw-r--r-- | quantum/quantum.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk index df72241788..de93af7e8c 100644 --- a/quantum/quantum.mk +++ b/quantum/quantum.mk @@ -2,7 +2,7 @@ QUANTUM_DIR = quantum # # project specific files SRC += $(QUANTUM_DIR)/keymap_common.c \ - $(QUANTUM_DIR)/led.c + $(QUANTUM_DIR)/led.c # ifdef KEYMAP_FILE # ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)')) @@ -35,6 +35,12 @@ ifdef UNICODE_ENABLE SRC += $(QUANTUM_DIR)/keymap_unicode.c endif +ifdef RGBLIGHT_ENABLE + SRC += $(QUANTUM_DIR)/light_ws2812.c + SRC += $(QUANTUM_DIR)/rgblight.c + OPT_DEFS += -DRGBLIGHT_ENABLE +endif + # Optimize size but this may cause error "relocation truncated to fit" #EXTRALDFLAGS = -Wl,--relax @@ -45,4 +51,3 @@ include $(TMK_DIR)/protocol/lufa.mk include $(TMK_DIR)/common.mk include $(TMK_DIR)/rules.mk - |