aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/common_features.mk b/common_features.mk
index 8c3361732..9b9d017a7 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -249,11 +249,15 @@ endif
249 249
250include $(DRIVER_PATH)/qwiic/qwiic.mk 250include $(DRIVER_PATH)/qwiic/qwiic.mk
251 251
252
252QUANTUM_SRC:= \ 253QUANTUM_SRC:= \
253 $(QUANTUM_DIR)/quantum.c \ 254 $(QUANTUM_DIR)/quantum.c \
254 $(QUANTUM_DIR)/keymap_common.c \ 255 $(QUANTUM_DIR)/keymap_common.c \
255 $(QUANTUM_DIR)/keycode_config.c 256 $(QUANTUM_DIR)/keycode_config.c
256 257
258
259
260
257# Include the standard or split matrix code if needed 261# Include the standard or split matrix code if needed
258ifneq ($(strip $(CUSTOM_MATRIX)), yes) 262ifneq ($(strip $(CUSTOM_MATRIX)), yes)
259 ifeq ($(strip $(SPLIT_KEYBOARD)), yes) 263 ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
@@ -263,11 +267,22 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes)
263 endif 267 endif
264endif 268endif
265 269
266# Include the standard debounce code if needed 270DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
267ifneq ($(strip $(CUSTOM_DEBOUNCE)), yes) 271# Debounce Modules. If implemented in matrix.c, don't use these.
268 QUANTUM_SRC += $(QUANTUM_DIR)/debounce.c 272ifeq ($(strip $(DEBOUNCE_ALGO)), manual)
273 # Do nothing. do your debouncing in matrix.c
274else ifeq ($(strip $(DEBOUNCE_ALGO)), sym_g)
275 QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c
276else ifeq ($(strip $(DEBOUNCE_ALGO)), eager_pk)
277 QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c
278else ifeq ($(strip $(CUSTOM_MATRIX)), yes)
279 # Do nothing. Custom matrix code.
280else # default algorithm
281 QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c
269endif 282endif
270 283
284
285
271ifeq ($(strip $(SPLIT_KEYBOARD)), yes) 286ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
272 OPT_DEFS += -DSPLIT_KEYBOARD 287 OPT_DEFS += -DSPLIT_KEYBOARD
273 288