Skip to content

Commit c0628c2

Browse files
authored
Remove backwards compatibility of debounce names (#13877)
* Remove backwards compatibility of debounce names * Update docs * Update keyboards/keymaps
1 parent 7c691d8 commit c0628c2

File tree

11 files changed

+10
-56
lines changed

11 files changed

+10
-56
lines changed

common_features.mk

+2-14
Original file line numberDiff line numberDiff line change
@@ -514,22 +514,10 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes)
514514
endif
515515
endif
516516

517-
# Support for translating old names to new names:
518-
ifeq ($(strip $(DEBOUNCE_TYPE)),sym_g)
519-
DEBOUNCE_TYPE:=sym_defer_g
520-
else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pk)
521-
DEBOUNCE_TYPE:=sym_eager_pk
522-
else ifeq ($(strip $(DEBOUNCE_TYPE)),sym_pk)
523-
DEBOUNCE_TYPE:=sym_defer_pk
524-
else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pr)
525-
DEBOUNCE_TYPE:=sym_eager_pr
526-
endif
527-
528-
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
529517
# Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually.
530-
DEBOUNCE_TYPE?= sym_defer_g
518+
DEBOUNCE_TYPE ?= sym_defer_g
531519
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
532-
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
520+
QUANTUM_SRC += $(QUANTUM_DIR)/debounce/$(strip $(DEBOUNCE_TYPE)).c
533521
endif
534522

535523
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)

docs/feature_debounce_type.md

-17
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,6 @@ susceptible to noise, you must choose a debounce method that will also mitigate
9292
## Debounce algorithms supported by QMK
9393

9494
QMK supports multiple debounce algorithms through its debounce API.
95-
The logic for which debounce method called is below. It checks various defines that you have set in ```rules.mk```
96-
97-
```
98-
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
99-
DEBOUNCE_TYPE?= sym_defer_g
100-
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
101-
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
102-
endif
103-
```
10495

10596
### Debounce selection
10697

@@ -140,11 +131,3 @@ You have the option to implement you own debouncing algorithm. To do this:
140131
* Debouncing occurs after every raw matrix scan.
141132
* Use num_rows rather than MATRIX_ROWS, so that split keyboards are supported correctly.
142133
* If the algorithm might be applicable to other keyboards, please consider adding it to ```quantum/debounce```
143-
144-
### Old names
145-
The following old names for existing algorithms will continue to be supported, however it is recommended to use the new names instead.
146-
147-
* sym_g - old name for sym_defer_g
148-
* eager_pk - old name for sym_eager_pk
149-
* sym_pk - old name for sym_defer_pk
150-
* eager_pr - old name for sym_eager_pr

docs/ja/feature_debounce_type.md

-17
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ voltage +----------------------
8888
## QMK でサポートされるデバウンスアルゴリズム
8989

9090
QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。
91-
どのデバウンスメソッドが呼ばれるかのロジックは下記のとおりです。```rules.mk``` で設定された様々な定義をチェックします。
92-
93-
```
94-
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
95-
DEBOUNCE_TYPE?= sym_defer_g
96-
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
97-
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
98-
endif
99-
```
10091

10192
### デバウンスの選択
10293

@@ -135,11 +126,3 @@ DEBOUNCE_TYPE = <アルゴリズムの名前>
135126
* デバウンスは、全てのマトリクススキャンの後で発生します。
136127
* MATRIX_ROWS ではなく num_rows を使って、分割キーボードが正しくサポートされるようにします。
137128
* アルゴリズムが他のキーボードにも適用できる可能性がある場合、```quantum/debounce``` に追加することを検討してください。
138-
139-
### 古い名前
140-
次の既存のアルゴリズムの古い名前は引き続きサポートされますが、代わりに新しい名前を使うことを推奨します。
141-
142-
* sym_g - sym_defer_g の古い名前
143-
* eager_pk - sym_eager_pk の古い名前
144-
* sym_pk - sym_defer_pk の古い名前
145-
* eager_pr - sym_eager_pr の古い名前

keyboards/ergodox_ez/keymaps/nfriend/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set any rules.mk overrides for your specific keymap here.
22
# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
3-
DEBOUNCE_TYPE = eager_pk
3+
DEBOUNCE_TYPE = sym_eager_pk
44
LTO_ENABLE = yes
55
COMMAND_ENABLE = no
66
UNICODE_ENABLE = no

keyboards/ergodox_ez/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SLEEP_LED_ENABLE = no
2525

2626
RGB_MATRIX_ENABLE = no # enable later
2727
RGB_MATRIX_DRIVER = IS31FL3731
28-
DEBOUNCE_TYPE = eager_pr
28+
DEBOUNCE_TYPE = sym_eager_pr
2929

3030
# project specific files
3131
SRC += matrix.c \

keyboards/gergo/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ CONSOLE_ENABLE = yes
1717
COMMAND_ENABLE = yes
1818
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
1919

20-
DEBOUNCE_TYPE = eager_pr
20+
DEBOUNCE_TYPE = sym_eager_pr
2121
SRC += matrix.c
2222
QUANTUM_LIB_SRC += i2c_master.c

keyboards/handwired/xealous/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ SUBPROJECT_rev1 = yes
3434
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
3535

3636
SRC += matrix.c
37-
DEBOUNCE_TYPE = eager_pk
37+
DEBOUNCE_TYPE = sym_eager_pk
3838

3939
DEFAULT_FOLDER = handwired/xealous/rev1

keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ MOUSEKEY_ENABLE = no
22
COMMAND_ENABLE = no
33
RGBLIGHT_ENABLE = yes
44
LTO_ENABLE = yes
5-
DEBOUNCE_TYPE = eager_pk
5+
DEBOUNCE_TYPE = sym_eager_pk

keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ MOUSEKEY_ENABLE = no
22
COMMAND_ENABLE = no
33
RGBLIGHT_ENABLE = yes
44
LTO_ENABLE = yes
5-
DEBOUNCE_TYPE = eager_pk
5+
DEBOUNCE_TYPE = sym_eager_pk

keyboards/yampad/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
2121
BLUETOOTH_ENABLE = no # Enable Bluetooth
2222
AUDIO_ENABLE = no # Audio output
2323
OLED_DRIVER_ENABLE = yes
24-
DEBOUNCE_TYPE = eager_pk
24+
DEBOUNCE_TYPE = sym_eager_pk

layouts/community/ergodox/drashna/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ UNICODE_ENABLE = no
1818
UNICDOEMAP_ENABLE = no
1919

2020

21-
DEBOUNCE_TYPE = eager_pr
21+
DEBOUNCE_TYPE = sym_eager_pr

0 commit comments

Comments
 (0)