diff options
| author | James Churchill <pelrun@gmail.com> | 2019-03-05 01:44:46 +1000 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-03-04 07:44:46 -0800 |
| commit | c7c4937eef9cb34b73e765390b842282ad9f0544 (patch) | |
| tree | 2e2582abe4273e3acf7125e0b8a09eb04ab04730 /common_features.mk | |
| parent | cdfcbfc92dba8198847e26056d8135a5feb0b5ec (diff) | |
| download | qmk_firmware-c7c4937eef9cb34b73e765390b842282ad9f0544.tar.gz qmk_firmware-c7c4937eef9cb34b73e765390b842282ad9f0544.zip | |
Clean up debounce a bit (#5255)
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/common_features.mk b/common_features.mk index f5bef3d5d..20c38ae82 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -298,19 +298,11 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes) | |||
| 298 | endif | 298 | endif |
| 299 | 299 | ||
| 300 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce | 300 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce |
| 301 | # Debounce Modules. If implemented in matrix.c, don't use these. | 301 | # Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. |
| 302 | DEBOUNCE_TYPE?= sym_g | 302 | DEBOUNCE_TYPE?= sym_g |
| 303 | VALID_DEBOUNCE_TYPES := sym_g eager_pk custom | 303 | ifneq ($(strip $(DEBOUNCE_TYPE)), custom) |
| 304 | ifeq ($(filter $(DEBOUNCE_TYPE),$(VALID_DEBOUNCE_TYPES)),) | 304 | QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c |
| 305 | $(error DEBOUNCE_TYPE="$(DEBOUNCE_TYPE)" is not a valid debounce algorithm) | ||
| 306 | endif | 305 | endif |
| 307 | ifeq ($(strip $(DEBOUNCE_TYPE)), sym_g) | ||
| 308 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c | ||
| 309 | else ifeq ($(strip $(DEBOUNCE_TYPE)), eager_pk) | ||
| 310 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c | ||
| 311 | endif | ||
| 312 | |||
| 313 | |||
| 314 | 306 | ||
| 315 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) | 307 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) |
| 316 | OPT_DEFS += -DSPLIT_KEYBOARD | 308 | OPT_DEFS += -DSPLIT_KEYBOARD |
