diff options
| -rw-r--r-- | common_features.mk | 16 | ||||
| -rw-r--r-- | docs/feature_debounce_type.md | 17 | ||||
| -rw-r--r-- | docs/ja/feature_debounce_type.md | 17 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/nfriend/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/gergo/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/xealous/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/keebio/nyquist/keymaps/georgepetri/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/keebio/nyquist/keymaps/georgepetri3/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/yampad/rules.mk | 2 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/rules.mk | 2 |
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 |
| 515 | endif | 515 | endif |
| 516 | 516 | ||
| 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 | ||
| 529 | # Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. | 517 | # Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually. |
| 530 | DEBOUNCE_TYPE?= sym_defer_g | 518 | DEBOUNCE_TYPE ?= sym_defer_g |
| 531 | ifneq ($(strip $(DEBOUNCE_TYPE)), custom) | 519 | ifneq ($(strip $(DEBOUNCE_TYPE)), custom) |
| 532 | QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c | 520 | QUANTUM_SRC += $(QUANTUM_DIR)/debounce/$(strip $(DEBOUNCE_TYPE)).c |
| 533 | endif | 521 | endif |
| 534 | 522 | ||
| 535 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) | 523 | ifeq ($(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 | ||
| 94 | QMK supports multiple debounce algorithms through its debounce API. | 94 | 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 | ``` | ||
| 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 | ||
| 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 | ||
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 | ||
| 90 | QMK はデバウンス API を介して複数のデバウンスアルゴリズムをサポートします。 | 90 | 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 | ``` | ||
| 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 |
| 3 | DEBOUNCE_TYPE = eager_pk | 3 | DEBOUNCE_TYPE = sym_eager_pk |
| 4 | LTO_ENABLE = yes | 4 | LTO_ENABLE = yes |
| 5 | COMMAND_ENABLE = no | 5 | COMMAND_ENABLE = no |
| 6 | UNICODE_ENABLE = no | 6 | UNICODE_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 | ||
| 26 | RGB_MATRIX_ENABLE = no # enable later | 26 | RGB_MATRIX_ENABLE = no # enable later |
| 27 | RGB_MATRIX_DRIVER = IS31FL3731 | 27 | RGB_MATRIX_DRIVER = IS31FL3731 |
| 28 | DEBOUNCE_TYPE = eager_pr | 28 | DEBOUNCE_TYPE = sym_eager_pr |
| 29 | 29 | ||
| 30 | # project specific files | 30 | # project specific files |
| 31 | SRC += matrix.c \ | 31 | SRC += 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 | |||
| 17 | COMMAND_ENABLE = yes | 17 | COMMAND_ENABLE = yes |
| 18 | BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite | 18 | BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite |
| 19 | 19 | ||
| 20 | DEBOUNCE_TYPE = eager_pr | 20 | DEBOUNCE_TYPE = sym_eager_pr |
| 21 | SRC += matrix.c | 21 | SRC += matrix.c |
| 22 | QUANTUM_LIB_SRC += i2c_master.c | 22 | QUANTUM_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 | |||
| 34 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 34 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 35 | 35 | ||
| 36 | SRC += matrix.c | 36 | SRC += matrix.c |
| 37 | DEBOUNCE_TYPE = eager_pk | 37 | DEBOUNCE_TYPE = sym_eager_pk |
| 38 | 38 | ||
| 39 | DEFAULT_FOLDER = handwired/xealous/rev1 | 39 | DEFAULT_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 | |||
| 2 | COMMAND_ENABLE = no | 2 | COMMAND_ENABLE = no |
| 3 | RGBLIGHT_ENABLE = yes | 3 | RGBLIGHT_ENABLE = yes |
| 4 | LTO_ENABLE = yes | 4 | LTO_ENABLE = yes |
| 5 | DEBOUNCE_TYPE = eager_pk | 5 | DEBOUNCE_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 | |||
| 2 | COMMAND_ENABLE = no | 2 | COMMAND_ENABLE = no |
| 3 | RGBLIGHT_ENABLE = yes | 3 | RGBLIGHT_ENABLE = yes |
| 4 | LTO_ENABLE = yes | 4 | LTO_ENABLE = yes |
| 5 | DEBOUNCE_TYPE = eager_pk | 5 | DEBOUNCE_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 | |||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
| 23 | OLED_DRIVER_ENABLE = yes | 23 | OLED_DRIVER_ENABLE = yes |
| 24 | DEBOUNCE_TYPE = eager_pk | 24 | DEBOUNCE_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 | |||
| 18 | UNICDOEMAP_ENABLE = no | 18 | UNICDOEMAP_ENABLE = no |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | DEBOUNCE_TYPE = eager_pr | 21 | DEBOUNCE_TYPE = sym_eager_pr |
