summaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2018-10-26 22:19:23 +0200
committerDrashna Jaelre <drashna@live.com>2018-10-26 23:24:13 +0200
commit85688e5b52112c86895171d3dc8b26610480e932 (patch)
tree03f3f7bf585ebdf158576aeb6a8cf0c8c5319d6f /common_features.mk
parente22c3992454ade93ccaef70ab077e79a4b2a5ef0 (diff)
downloadqmk_firmware-85688e5b52112c86895171d3dc8b26610480e932.tar.gz
qmk_firmware-85688e5b52112c86895171d3dc8b26610480e932.tar.xz
add support for encoders to core
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index 65ff6b5b3..3fd8361a5 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -219,6 +219,11 @@ ifeq ($(strip $(USB_HID_ENABLE)), yes)
include $(TMK_DIR)/protocol/usb_hid.mk
endif
+ifeq ($(strip $(ENCODER_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/encoder.c
+ OPT_DEFS += -DENCODER_ENABLE
+endif
+
ifeq ($(strip $(HD44780_ENABLE)), yes)
SRC += drivers/avr/hd44780.c
OPT_DEFS += -DHD44780_ENABLE