diff options
author | Purdea Andrei <andrei@purdea.ro> | 2020-09-06 23:13:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 13:13:49 -0700 |
commit | f7ccbfcea88e127319a4665a6c8ca67883854030 (patch) | |
tree | 25a2d9f5c7b9b95795d097c9514928af90d5080a /common_features.mk | |
parent | 8ac9940a76f09d4a47be342fc123306ecbfb27f3 (diff) | |
download | qmk_firmware-f7ccbfcea88e127319a4665a6c8ca67883854030.tar.gz qmk_firmware-f7ccbfcea88e127319a4665a6c8ca67883854030.zip |
quantum/debounce: rename debouncing algorithms (#9564)
* quantum/debounce: rename debouncing algorithms according to Issue 8763
This is the second attempt at implementation, with no ts_ and cy_ prefixes, since those will be implemented with macros.
* Debouncing documentation: Refactor, add some generic info, and merge into a single document
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk index 1f110d081..ed6908f4b 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -397,9 +397,20 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes) | |||
397 | endif | 397 | endif |
398 | endif | 398 | endif |
399 | 399 | ||
400 | # Support for translating old names to new names: | ||
401 | ifeq ($(strip $(DEBOUNCE_TYPE)),sym_g) | ||
402 | DEBOUNCE_TYPE:=sym_defer_g | ||
403 | else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pk) | ||
404 | DEBOUNCE_TYPE:=sym_eager_pk | ||
405 | else ifeq ($(strip $(DEBOUNCE_TYPE)),sym_pk) | ||
406 | DEBOUNCE_TYPE:=sym_defer_pk | ||
407 | else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pr) | ||
408 | DEBOUNCE_TYPE:=sym_eager_pr | ||
409 | endif | ||
410 | |||
400 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce | 411 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce |
401 | # Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. | 412 | # Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. |
402 | DEBOUNCE_TYPE?= sym_g | 413 | DEBOUNCE_TYPE?= sym_defer_g |
403 | ifneq ($(strip $(DEBOUNCE_TYPE)), custom) | 414 | ifneq ($(strip $(DEBOUNCE_TYPE)), custom) |
404 | QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c | 415 | QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c |
405 | endif | 416 | endif |