aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common_features.mk16
-rw-r--r--docs/feature_debounce_type.md17
-rw-r--r--docs/ja/feature_debounce_type.md17
-rw-r--r--keyboards/ergodox_ez/keymaps/nfriend/rules.mk2
-rw-r--r--keyboards/ergodox_ez/rules.mk2
-rw-r--r--keyboards/gergo/rules.mk2
-rw-r--r--keyboards/handwired/xealous/rules.mk2
-rw-r--r--keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk2
-rw-r--r--keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk2
-rw-r--r--keyboards/yampad/rules.mk2
-rw-r--r--layouts/community/ergodox/drashna/rules.mk2
11 files changed, 10 insertions, 56 deletions
diff --git a/common_features.mk b/common_features.mk
index 8f41fb96a..e442222ea 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -514,22 +514,10 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes)
514 endif 514 endif
515endif 515endif
516 516
517# Support for translating old names to new names:
518ifeq ($(strip $(DEBOUNCE_TYPE)),sym_g)
519 DEBOUNCE_TYPE:=sym_defer_g
520else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pk)
521 DEBOUNCE_TYPE:=sym_eager_pk
522else ifeq ($(strip $(DEBOUNCE_TYPE)),sym_pk)
523 DEBOUNCE_TYPE:=sym_defer_pk
524else ifeq ($(strip $(DEBOUNCE_TYPE)),eager_pr)
525 DEBOUNCE_TYPE:=sym_eager_pr
526endif
527
528DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
529# Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. 517# Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually.
530DEBOUNCE_TYPE?= sym_defer_g 518DEBOUNCE_TYPE ?= sym_defer_g
531ifneq ($(strip $(DEBOUNCE_TYPE)), custom) 519ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
532 QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c 520 QUANTUM_SRC += $(QUANTUM_DIR)/debounce/$(strip $(DEBOUNCE_TYPE)).c
533endif 521endif
534 522
535ifeq ($(strip $(SPLIT_KEYBOARD)), yes) 523ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
diff --git a/docs/feature_debounce_type.md b/docs/feature_debounce_type.md
index 306185fe8..f37a785b1 100644
--- a/docs/feature_debounce_type.md
+++ b/docs/feature_debounce_type.md
@@ -92,15 +92,6 @@ susceptible to noise, you must choose a debounce method that will also mitigate
92## Debounce algorithms supported by QMK 92## Debounce algorithms supported by QMK
93 93
94QMK supports multiple debounce algorithms through its debounce API. 94QMK supports multiple debounce algorithms through its debounce API.
95The logic for which debounce method called is below. It checks various defines that you have set in ```rules.mk```
96
97```
98DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
99DEBOUNCE_TYPE?= sym_defer_g
100ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
101 QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
102endif
103```
104 95
105### Debounce selection 96### Debounce selection
106 97
@@ -140,11 +131,3 @@ You have the option to implement you own debouncing algorithm. To do this:
140* Debouncing occurs after every raw matrix scan. 131* Debouncing occurs after every raw matrix scan.
141* Use num_rows rather than MATRIX_ROWS, so that split keyboards are supported correctly. 132* Use num_rows rather than MATRIX_ROWS, so that split keyboards are supported correctly.
142* If the algorithm might be applicable to other keyboards, please consider adding it to ```quantum/debounce``` 133* If the algorithm might be applicable to other keyboards, please consider adding it to ```quantum/debounce```
143
144### Old names
145The 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
diff --git a/docs/ja/feature_debounce_type.md b/docs/ja/feature_debounce_type.md
index 03f68d721..258ca194d 100644
--- a/docs/ja/feature_debounce_type.md
+++ b/docs/ja/feature_debounce_type.md
@@ -88,15 +88,6 @@ voltage +----------------------
88## QMK でサポートされるデバウンスアルゴリズム 88## QMK でサポートされるデバウンスアルゴリズム
89 89
90QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。 90QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。
91どのデバウンスメソッドが呼ばれるかのロジックは下記のとおりです。```rules.mk``` で設定された様々な定義をチェックします。
92
93```
94DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
95DEBOUNCE_TYPE?= sym_defer_g
96ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
97 QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
98endif
99```
100 91
101### デバウンスの選択 92### デバウンスの選択
102 93
@@ -135,11 +126,3 @@ DEBOUNCE_TYPE = <アルゴリズムの名前>
135* デバウンスは、全てのマトリクススキャンの後で発生します。 126* デバウンスは、全てのマトリクススキャンの後で発生します。
136* MATRIX_ROWS ではなく num_rows を使って、分割キーボードが正しくサポートされるようにします。 127* MATRIX_ROWS ではなく num_rows を使って、分割キーボードが正しくサポートされるようにします。
137* アルゴリズムが他のキーボードにも適用できる可能性がある場合、```quantum/debounce``` に追加することを検討してください。 128* アルゴリズムが他のキーボードにも適用できる可能性がある場合、```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 の古い名前
diff --git a/keyboards/ergodox_ez/keymaps/nfriend/rules.mk b/keyboards/ergodox_ez/keymaps/nfriend/rules.mk
index 7e037f641..721d80360 100644
--- a/keyboards/ergodox_ez/keymaps/nfriend/rules.mk
+++ b/keyboards/ergodox_ez/keymaps/nfriend/rules.mk
@@ -1,6 +1,6 @@
1# Set any rules.mk overrides for your specific keymap here. 1# Set any rules.mk overrides for your specific keymap here.
2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file 2# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file
3DEBOUNCE_TYPE = eager_pk 3DEBOUNCE_TYPE = sym_eager_pk
4LTO_ENABLE = yes 4LTO_ENABLE = yes
5COMMAND_ENABLE = no 5COMMAND_ENABLE = no
6UNICODE_ENABLE = no 6UNICODE_ENABLE = no
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk
index 0618e336a..25e51ae4e 100644
--- a/keyboards/ergodox_ez/rules.mk
+++ b/keyboards/ergodox_ez/rules.mk
@@ -25,7 +25,7 @@ SLEEP_LED_ENABLE = no
25 25
26RGB_MATRIX_ENABLE = no # enable later 26RGB_MATRIX_ENABLE = no # enable later
27RGB_MATRIX_DRIVER = IS31FL3731 27RGB_MATRIX_DRIVER = IS31FL3731
28DEBOUNCE_TYPE = eager_pr 28DEBOUNCE_TYPE = sym_eager_pr
29 29
30# project specific files 30# project specific files
31SRC += matrix.c \ 31SRC += matrix.c \
diff --git a/keyboards/gergo/rules.mk b/keyboards/gergo/rules.mk
index 9b4a8d6fb..6a1d07324 100644
--- a/keyboards/gergo/rules.mk
+++ b/keyboards/gergo/rules.mk
@@ -17,6 +17,6 @@ CONSOLE_ENABLE = yes
17COMMAND_ENABLE = yes 17COMMAND_ENABLE = yes
18BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite 18BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
19 19
20DEBOUNCE_TYPE = eager_pr 20DEBOUNCE_TYPE = sym_eager_pr
21SRC += matrix.c 21SRC += matrix.c
22QUANTUM_LIB_SRC += i2c_master.c 22QUANTUM_LIB_SRC += i2c_master.c
diff --git a/keyboards/handwired/xealous/rules.mk b/keyboards/handwired/xealous/rules.mk
index e660c61cb..55384f308 100644
--- a/keyboards/handwired/xealous/rules.mk
+++ b/keyboards/handwired/xealous/rules.mk
@@ -34,6 +34,6 @@ SUBPROJECT_rev1 = yes
34SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 34SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
35 35
36SRC += matrix.c 36SRC += matrix.c
37DEBOUNCE_TYPE = eager_pk 37DEBOUNCE_TYPE = sym_eager_pk
38 38
39DEFAULT_FOLDER = handwired/xealous/rev1 39DEFAULT_FOLDER = handwired/xealous/rev1
diff --git a/keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk b/keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk
index 4010d90f0..072f9b2ed 100644
--- a/keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk
+++ b/keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk
@@ -2,4 +2,4 @@ MOUSEKEY_ENABLE = no
2COMMAND_ENABLE = no 2COMMAND_ENABLE = no
3RGBLIGHT_ENABLE = yes 3RGBLIGHT_ENABLE = yes
4LTO_ENABLE = yes 4LTO_ENABLE = yes
5DEBOUNCE_TYPE = eager_pk 5DEBOUNCE_TYPE = sym_eager_pk
diff --git a/keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk b/keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk
index 4010d90f0..072f9b2ed 100644
--- a/keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk
+++ b/keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk
@@ -2,4 +2,4 @@ MOUSEKEY_ENABLE = no
2COMMAND_ENABLE = no 2COMMAND_ENABLE = no
3RGBLIGHT_ENABLE = yes 3RGBLIGHT_ENABLE = yes
4LTO_ENABLE = yes 4LTO_ENABLE = yes
5DEBOUNCE_TYPE = eager_pk 5DEBOUNCE_TYPE = sym_eager_pk
diff --git a/keyboards/yampad/rules.mk b/keyboards/yampad/rules.mk
index 21c7ffe71..872fd4c72 100644
--- a/keyboards/yampad/rules.mk
+++ b/keyboards/yampad/rules.mk
@@ -21,4 +21,4 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth 21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output 22AUDIO_ENABLE = no # Audio output
23OLED_DRIVER_ENABLE = yes 23OLED_DRIVER_ENABLE = yes
24DEBOUNCE_TYPE = eager_pk 24DEBOUNCE_TYPE = sym_eager_pk
diff --git a/layouts/community/ergodox/drashna/rules.mk b/layouts/community/ergodox/drashna/rules.mk
index 6a207c952..96a102700 100644
--- a/layouts/community/ergodox/drashna/rules.mk
+++ b/layouts/community/ergodox/drashna/rules.mk
@@ -18,4 +18,4 @@ UNICODE_ENABLE = no
18UNICDOEMAP_ENABLE = no 18UNICDOEMAP_ENABLE = no
19 19
20 20
21DEBOUNCE_TYPE = eager_pr 21DEBOUNCE_TYPE = sym_eager_pr