diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/common_features.mk b/common_features.mk index b5fdb404b..6f02dbac6 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -282,10 +282,20 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes) | |||
| 282 | endif | 282 | endif |
| 283 | endif | 283 | endif |
| 284 | 284 | ||
| 285 | # Include the standard debounce code if needed | 285 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce |
| 286 | ifneq ($(strip $(CUSTOM_DEBOUNCE)), yes) | 286 | # Debounce Modules. If implemented in matrix.c, don't use these. |
| 287 | QUANTUM_SRC += $(QUANTUM_DIR)/debounce.c | 287 | DEBOUNCE_TYPE?= sym_g |
| 288 | VALID_DEBOUNCE_TYPES := sym_g eager_pk custom | ||
| 289 | ifeq ($(filter $(DEBOUNCE_TYPE),$(VALID_DEBOUNCE_TYPES)),) | ||
| 290 | $(error DEBOUNCE_TYPE="$(DEBOUNCE_TYPE)" is not a valid debounce algorithm) | ||
| 288 | endif | 291 | endif |
| 292 | ifeq ($(strip $(DEBOUNCE_TYPE)), sym_g) | ||
| 293 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c | ||
| 294 | else ifeq ($(strip $(DEBOUNCE_TYPE)), eager_pk) | ||
| 295 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c | ||
| 296 | endif | ||
| 297 | |||
| 298 | |||
| 289 | 299 | ||
| 290 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) | 300 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) |
| 291 | OPT_DEFS += -DSPLIT_KEYBOARD | 301 | OPT_DEFS += -DSPLIT_KEYBOARD |
