diff options
author | Joel Challis <git@zvecr.com> | 2021-10-18 12:55:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 12:55:44 +0100 |
commit | 01b702bece4de0aa17c1df39a3305a1b643fd762 (patch) | |
tree | 73c898da1a4d9408b95c7441fc7a01f9aac728c9 | |
parent | e50867d52d9c255570630a23514842749b45e4c1 (diff) | |
download | qmk_firmware-01b702bece4de0aa17c1df39a3305a1b643fd762.tar.gz qmk_firmware-01b702bece4de0aa17c1df39a3305a1b643fd762.zip |
Split out HAPTIC_ENABLE to have separate DRIVER option (#14854)
* DRIVER -> ENABLE
* Update generic_features.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update common_features.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | common_features.mk | 24 | ||||
-rw-r--r-- | docs/feature_haptic_feedback.md | 7 | ||||
-rw-r--r-- | docs/ja/feature_haptic_feedback.md | 7 | ||||
-rw-r--r-- | generic_features.mk | 1 | ||||
-rw-r--r-- | keyboards/boston_meetup/2019/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/c39/keymaps/drashna/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/hadron/ver3/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/splitkb/zima/rules.mk | 7 | ||||
-rw-r--r-- | keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/rules.mk | 4 | ||||
-rw-r--r-- | keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/xw60/rules.mk | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/drashna/rules.mk | 1 | ||||
-rw-r--r-- | lib/python/qmk/info.py | 5 |
16 files changed, 44 insertions, 36 deletions
diff --git a/common_features.mk b/common_features.mk index 7dd63be5b..9b9425dc3 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -495,23 +495,19 @@ ifeq ($(strip $(CRC_ENABLE)), yes) | |||
495 | SRC += crc.c | 495 | SRC += crc.c |
496 | endif | 496 | endif |
497 | 497 | ||
498 | HAPTIC_ENABLE ?= no | 498 | ifeq ($(strip $(HAPTIC_ENABLE)),yes) |
499 | ifneq ($(strip $(HAPTIC_ENABLE)),no) | ||
500 | COMMON_VPATH += $(DRIVER_PATH)/haptic | 499 | COMMON_VPATH += $(DRIVER_PATH)/haptic |
501 | OPT_DEFS += -DHAPTIC_ENABLE | ||
502 | SRC += $(QUANTUM_DIR)/haptic.c | ||
503 | SRC += $(QUANTUM_DIR)/process_keycode/process_haptic.c | ||
504 | endif | ||
505 | 500 | ||
506 | ifneq ($(filter DRV2605L, $(HAPTIC_ENABLE)), ) | 501 | ifneq ($(filter DRV2605L, $(HAPTIC_DRIVER)), ) |
507 | SRC += DRV2605L.c | 502 | SRC += DRV2605L.c |
508 | QUANTUM_LIB_SRC += i2c_master.c | 503 | QUANTUM_LIB_SRC += i2c_master.c |
509 | OPT_DEFS += -DDRV2605L | 504 | OPT_DEFS += -DDRV2605L |
510 | endif | 505 | endif |
511 | 506 | ||
512 | ifneq ($(filter SOLENOID, $(HAPTIC_ENABLE)), ) | 507 | ifneq ($(filter SOLENOID, $(HAPTIC_DRIVER)), ) |
513 | SRC += solenoid.c | 508 | SRC += solenoid.c |
514 | OPT_DEFS += -DSOLENOID_ENABLE | 509 | OPT_DEFS += -DSOLENOID_ENABLE |
510 | endif | ||
515 | endif | 511 | endif |
516 | 512 | ||
517 | ifeq ($(strip $(HD44780_ENABLE)), yes) | 513 | ifeq ($(strip $(HD44780_ENABLE)), yes) |
diff --git a/docs/feature_haptic_feedback.md b/docs/feature_haptic_feedback.md index a12bb4bcd..4054c5d9b 100644 --- a/docs/feature_haptic_feedback.md +++ b/docs/feature_haptic_feedback.md | |||
@@ -4,9 +4,12 @@ | |||
4 | 4 | ||
5 | The following options are currently available for haptic feedback in `rules.mk`: | 5 | The following options are currently available for haptic feedback in `rules.mk`: |
6 | 6 | ||
7 | `HAPTIC_ENABLE += DRV2605L` | 7 | ``` |
8 | HAPTIC_ENABLE = yes | ||
8 | 9 | ||
9 | `HAPTIC_ENABLE += SOLENOID` | 10 | HAPTIC_DRIVER += DRV2605L |
11 | HAPTIC_DRIVER += SOLENOID | ||
12 | ``` | ||
10 | 13 | ||
11 | ## Known Supported Hardware | 14 | ## Known Supported Hardware |
12 | 15 | ||
diff --git a/docs/ja/feature_haptic_feedback.md b/docs/ja/feature_haptic_feedback.md index 158079725..687788014 100644 --- a/docs/ja/feature_haptic_feedback.md +++ b/docs/ja/feature_haptic_feedback.md | |||
@@ -9,9 +9,12 @@ | |||
9 | 9 | ||
10 | 現在のところ、`rules.mk` で触覚フィードバック用に以下のオプションを利用可能です: | 10 | 現在のところ、`rules.mk` で触覚フィードバック用に以下のオプションを利用可能です: |
11 | 11 | ||
12 | `HAPTIC_ENABLE += DRV2605L` | 12 | ``` |
13 | HAPTIC_ENABLE = yes | ||
13 | 14 | ||
14 | `HAPTIC_ENABLE += SOLENOID` | 15 | HAPTIC_DRIVER += DRV2605L |
16 | HAPTIC_DRIVER += SOLENOID | ||
17 | ``` | ||
15 | 18 | ||
16 | ## サポートされる既知のハードウェア | 19 | ## サポートされる既知のハードウェア |
17 | 20 | ||
diff --git a/generic_features.mk b/generic_features.mk index c455c83dd..ff02d56bb 100644 --- a/generic_features.mk +++ b/generic_features.mk | |||
@@ -25,6 +25,7 @@ GENERIC_FEATURES = \ | |||
25 | DYNAMIC_MACRO \ | 25 | DYNAMIC_MACRO \ |
26 | ENCODER \ | 26 | ENCODER \ |
27 | GRAVE_ESC \ | 27 | GRAVE_ESC \ |
28 | HAPTIC \ | ||
28 | KEY_LOCK \ | 29 | KEY_LOCK \ |
29 | KEY_OVERRIDE \ | 30 | KEY_OVERRIDE \ |
30 | LEADER \ | 31 | LEADER \ |
diff --git a/keyboards/boston_meetup/2019/rules.mk b/keyboards/boston_meetup/2019/rules.mk index b7b6870a2..6468f47b7 100644 --- a/keyboards/boston_meetup/2019/rules.mk +++ b/keyboards/boston_meetup/2019/rules.mk | |||
@@ -22,6 +22,7 @@ AUDIO_ENABLE = yes # Audio output | |||
22 | RGBLIGHT_ENABLE = no | 22 | RGBLIGHT_ENABLE = no |
23 | RGB_MATRIX_ENABLE = no | 23 | RGB_MATRIX_ENABLE = no |
24 | RGB_MATRIX_DRIVER = WS2812 | 24 | RGB_MATRIX_DRIVER = WS2812 |
25 | HAPTIC_ENABLE += DRV2605L | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = DRV2605L | ||
26 | OLED_ENABLE = yes | 27 | OLED_ENABLE = yes |
27 | OLED_DRIVER = SSD1306 | 28 | OLED_DRIVER = SSD1306 |
diff --git a/keyboards/c39/keymaps/drashna/rules.mk b/keyboards/c39/keymaps/drashna/rules.mk index c05f6a4be..0e5a4cbeb 100644 --- a/keyboards/c39/keymaps/drashna/rules.mk +++ b/keyboards/c39/keymaps/drashna/rules.mk | |||
@@ -13,6 +13,7 @@ COMMAND_ENABLE = yes | |||
13 | NKRO_ENABLE = yes | 13 | NKRO_ENABLE = yes |
14 | AUDIO_ENABLE = yes | 14 | AUDIO_ENABLE = yes |
15 | UNICODE_ENABLE = yes | 15 | UNICODE_ENABLE = yes |
16 | HAPTIC_ENABLE = SOLENOID | 16 | HAPTIC_ENABLE = yes |
17 | HAPTIC_DRIVER = SOLENOID | ||
17 | 18 | ||
18 | RGBLIGHT_STARTUP_ANIMATION = yes | 19 | RGBLIGHT_STARTUP_ANIMATION = yes |
diff --git a/keyboards/hadron/ver3/rules.mk b/keyboards/hadron/ver3/rules.mk index ad753a5ff..c8681a141 100644 --- a/keyboards/hadron/ver3/rules.mk +++ b/keyboards/hadron/ver3/rules.mk | |||
@@ -21,7 +21,8 @@ AUDIO_ENABLE = yes | |||
21 | RGBLIGHT_ENABLE = yes | 21 | RGBLIGHT_ENABLE = yes |
22 | RGB_MATRIX_ENABLE = no # once arm_rgb is implemented | 22 | RGB_MATRIX_ENABLE = no # once arm_rgb is implemented |
23 | RGB_MATRIX_DRIVER = WS2812 | 23 | RGB_MATRIX_DRIVER = WS2812 |
24 | HAPTIC_ENABLE += DRV2605L | 24 | HAPTIC_ENABLE = yes |
25 | HAPTIC_DRIVER = DRV2605L | ||
25 | OLED_ENABLE = yes | 26 | OLED_ENABLE = yes |
26 | OLED_DRIVER = SSD1306 | 27 | OLED_DRIVER = SSD1306 |
27 | ENCODER_ENABLER = yes | 28 | ENCODER_ENABLER = yes |
diff --git a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk index 507f4fcd3..7837adcbd 100644 --- a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk +++ b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk | |||
@@ -22,4 +22,5 @@ ENCODER_ENABLE = no # Enable rotary encoder support | |||
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | 23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra |
24 | 24 | ||
25 | HAPTIC_ENABLE += SOLENOID | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = SOLENOID | ||
diff --git a/keyboards/splitkb/zima/rules.mk b/keyboards/splitkb/zima/rules.mk index ecb6fd7cf..657475a02 100644 --- a/keyboards/splitkb/zima/rules.mk +++ b/keyboards/splitkb/zima/rules.mk | |||
@@ -7,7 +7,7 @@ BOOTLOADER = atmel-dfu | |||
7 | # Build Options | 7 | # Build Options |
8 | # change yes to no to disable | 8 | # change yes to no to disable |
9 | # | 9 | # |
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | 10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite |
11 | MOUSEKEY_ENABLE = no # Mouse keys | 11 | MOUSEKEY_ENABLE = no # Mouse keys |
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
13 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
@@ -22,7 +22,8 @@ AUDIO_ENABLE = yes # Audio output | |||
22 | 22 | ||
23 | ENCODER_ENABLE = yes # ENables the use of one or more encoders | 23 | ENCODER_ENABLE = yes # ENables the use of one or more encoders |
24 | OLED_ENABLE = yes | 24 | OLED_ENABLE = yes |
25 | OLED_DRIVER = SSD1306 # Enables the use of OLED displays | 25 | OLED_DRIVER = SSD1306 # Enables the use of OLED displays |
26 | HAPTIC_ENABLE += DRV2605L # Supported but not included by defaut | 26 | HAPTIC_ENABLE = yes # Supported but not included by defaut |
27 | HAPTIC_DRIVER = DRV2605L | ||
27 | 28 | ||
28 | LTO_ENABLE = yes | 29 | LTO_ENABLE = yes |
diff --git a/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/rules.mk b/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/rules.mk index 507f4fcd3..7837adcbd 100644 --- a/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/rules.mk +++ b/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/rules.mk | |||
@@ -22,4 +22,5 @@ ENCODER_ENABLE = no # Enable rotary encoder support | |||
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | 23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra |
24 | 24 | ||
25 | HAPTIC_ENABLE += SOLENOID | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = SOLENOID | ||
diff --git a/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/rules.mk b/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/rules.mk index 30eb89bb7..2886985a0 100644 --- a/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/rules.mk +++ b/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/rules.mk | |||
@@ -22,5 +22,7 @@ ENCODER_ENABLE = no # Enable rotary encoder support | |||
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | 23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra |
24 | 24 | ||
25 | HAPTIC_ENABLE += SOLENOID | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = SOLENOID | ||
27 | |||
26 | LAYOUTS = fullsize_ansi fullsize_iso | 28 | LAYOUTS = fullsize_ansi fullsize_iso |
diff --git a/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/rules.mk b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/rules.mk index 507f4fcd3..7837adcbd 100644 --- a/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/rules.mk +++ b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/rules.mk | |||
@@ -22,4 +22,5 @@ ENCODER_ENABLE = no # Enable rotary encoder support | |||
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | 23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra |
24 | 24 | ||
25 | HAPTIC_ENABLE += SOLENOID | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = SOLENOID | ||
diff --git a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/rules.mk b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/rules.mk index 507f4fcd3..7837adcbd 100644 --- a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/rules.mk +++ b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/rules.mk | |||
@@ -22,4 +22,5 @@ ENCODER_ENABLE = no # Enable rotary encoder support | |||
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | 23 | KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra |
24 | 24 | ||
25 | HAPTIC_ENABLE += SOLENOID | 25 | HAPTIC_ENABLE = yes |
26 | HAPTIC_DRIVER = SOLENOID | ||
diff --git a/keyboards/xw60/rules.mk b/keyboards/xw60/rules.mk index 5921be64c..fc192e059 100644 --- a/keyboards/xw60/rules.mk +++ b/keyboards/xw60/rules.mk | |||
@@ -17,6 +17,7 @@ NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: ht | |||
17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
18 | AUDIO_ENABLE = no # Audio output | 18 | AUDIO_ENABLE = no # Audio output |
19 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | 19 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. |
20 | HAPTIC_ENABLE += SOLENOID | 20 | HAPTIC_ENABLE = yes |
21 | HAPTIC_DRIVER = SOLENOID | ||
21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/layouts/community/ortho_4x12/drashna/rules.mk b/layouts/community/ortho_4x12/drashna/rules.mk index 775ad8e6e..8c3e12663 100644 --- a/layouts/community/ortho_4x12/drashna/rules.mk +++ b/layouts/community/ortho_4x12/drashna/rules.mk | |||
@@ -28,7 +28,6 @@ ifeq ($(strip $(KEYBOARD)), planck/light) | |||
28 | RGBLIGHT_ENABLE = yes | 28 | RGBLIGHT_ENABLE = yes |
29 | RGBLIGHT_STARTUP_ANIMATION = yes | 29 | RGBLIGHT_STARTUP_ANIMATION = yes |
30 | AUDIO_ENABLE = yes | 30 | AUDIO_ENABLE = yes |
31 | # HAPTIC_ENABLE += SOLENOID | ||
32 | endif | 31 | endif |
33 | ifeq ($(strip $(KEYBOARD)), planck/ez) | 32 | ifeq ($(strip $(KEYBOARD)), planck/ez) |
34 | RGBLIGHT_ENABLE = no | 33 | RGBLIGHT_ENABLE = no |
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index 5eb10e3ce..c3bbcf3eb 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py | |||
@@ -112,11 +112,6 @@ def _extract_features(info_data, rules): | |||
112 | if rules.get('BOOTMAGIC_ENABLE') == 'full': | 112 | if rules.get('BOOTMAGIC_ENABLE') == 'full': |
113 | rules['BOOTMAGIC_ENABLE'] = 'on' | 113 | rules['BOOTMAGIC_ENABLE'] = 'on' |
114 | 114 | ||
115 | # Skip non-boolean features we haven't implemented special handling for | ||
116 | for feature in ('HAPTIC_ENABLE',): | ||
117 | if rules.get(feature): | ||
118 | del rules[feature] | ||
119 | |||
120 | # Process the rest of the rules as booleans | 115 | # Process the rest of the rules as booleans |
121 | for key, value in rules.items(): | 116 | for key, value in rules.items(): |
122 | if key.endswith('_ENABLE'): | 117 | if key.endswith('_ENABLE'): |