diff options
| author | Ryan <fauxpark@gmail.com> | 2023-09-25 13:06:42 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-25 13:06:42 +1000 |
| commit | 21ed9b4575fd5c19b4879b90d4a15863aa731ba9 (patch) | |
| tree | 59856837b61a32639c6680aee522523dd6e12de1 | |
| parent | 61702b25648a4ffb8ae42b739f7134f4709e393a (diff) | |
Simplify more feature driver defines (#22090)
51 files changed, 63 insertions, 62 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index a594e2b1d5..8e07c25c24 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk | |||
| @@ -602,7 +602,7 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes) | |||
| 602 | $(call CATASTROPHIC_ERROR,Invalid WS2812_DRIVER,WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) | 602 | $(call CATASTROPHIC_ERROR,Invalid WS2812_DRIVER,WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) |
| 603 | endif | 603 | endif |
| 604 | 604 | ||
| 605 | OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]')) | 605 | OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]')) |
| 606 | 606 | ||
| 607 | SRC += ws2812_$(strip $(WS2812_DRIVER)).c | 607 | SRC += ws2812_$(strip $(WS2812_DRIVER)).c |
| 608 | 608 | ||
| @@ -739,17 +739,16 @@ ifeq ($(strip $(HAPTIC_ENABLE)),yes) | |||
| 739 | ifeq ($(filter $(HAPTIC_DRIVER),$(VALID_HAPTIC_DRIVER_TYPES)),) | 739 | ifeq ($(filter $(HAPTIC_DRIVER),$(VALID_HAPTIC_DRIVER_TYPES)),) |
| 740 | $(call CATASTROPHIC_ERROR,Invalid HAPTIC_DRIVER,HAPTIC_DRIVER="$(HAPTIC_DRIVER)" is not a valid Haptic driver) | 740 | $(call CATASTROPHIC_ERROR,Invalid HAPTIC_DRIVER,HAPTIC_DRIVER="$(HAPTIC_DRIVER)" is not a valid Haptic driver) |
| 741 | else | 741 | else |
| 742 | OPT_DEFS += -DHAPTIC_$(strip $(shell echo $(HAPTIC_DRIVER) | tr '[:lower:]' '[:upper:]')) | ||
| 742 | COMMON_VPATH += $(DRIVER_PATH)/haptic | 743 | COMMON_VPATH += $(DRIVER_PATH)/haptic |
| 743 | 744 | ||
| 744 | ifeq ($(strip $(HAPTIC_DRIVER)), drv2605l) | 745 | ifeq ($(strip $(HAPTIC_DRIVER)), drv2605l) |
| 745 | SRC += drv2605l.c | 746 | SRC += drv2605l.c |
| 746 | QUANTUM_LIB_SRC += i2c_master.c | 747 | QUANTUM_LIB_SRC += i2c_master.c |
| 747 | OPT_DEFS += -DHAPTIC_DRV2605L | ||
| 748 | endif | 748 | endif |
| 749 | 749 | ||
| 750 | ifeq ($(strip $(HAPTIC_DRIVER)), solenoid) | 750 | ifeq ($(strip $(HAPTIC_DRIVER)), solenoid) |
| 751 | SRC += solenoid.c | 751 | SRC += solenoid.c |
| 752 | OPT_DEFS += -DHAPTIC_SOLENOID | ||
| 753 | endif | 752 | endif |
| 754 | endif | 753 | endif |
| 755 | endif | 754 | endif |
| @@ -772,6 +771,7 @@ ifeq ($(strip $(OLED_ENABLE)), yes) | |||
| 772 | $(call CATASTROPHIC_ERROR,Invalid OLED_TRANSPORT,OLED_TRANSPORT="$(OLED_TRANSPORT)" is not a valid OLED transport) | 771 | $(call CATASTROPHIC_ERROR,Invalid OLED_TRANSPORT,OLED_TRANSPORT="$(OLED_TRANSPORT)" is not a valid OLED transport) |
| 773 | else | 772 | else |
| 774 | OPT_DEFS += -DOLED_ENABLE | 773 | OPT_DEFS += -DOLED_ENABLE |
| 774 | OPT_DEFS += -DOLED_$(strip $(shell echo $(OLED_DRIVER) | tr '[:lower:]' '[:upper:]')) | ||
| 775 | COMMON_VPATH += $(DRIVER_PATH)/oled | 775 | COMMON_VPATH += $(DRIVER_PATH)/oled |
| 776 | ifneq ($(strip $(OLED_DRIVER)), custom) | 776 | ifneq ($(strip $(OLED_DRIVER)), custom) |
| 777 | SRC += oled_driver.c | 777 | SRC += oled_driver.c |
| @@ -924,12 +924,13 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) | |||
| 924 | $(call CATASTROPHIC_ERROR,Invalid BLUETOOTH_DRIVER,BLUETOOTH_DRIVER="$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type) | 924 | $(call CATASTROPHIC_ERROR,Invalid BLUETOOTH_DRIVER,BLUETOOTH_DRIVER="$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type) |
| 925 | endif | 925 | endif |
| 926 | OPT_DEFS += -DBLUETOOTH_ENABLE | 926 | OPT_DEFS += -DBLUETOOTH_ENABLE |
| 927 | OPT_DEFS += -DBLUETOOTH_$(strip $(shell echo $(BLUETOOTH_DRIVER) | tr '[:lower:]' '[:upper:]')) | ||
| 927 | NO_USB_STARTUP_CHECK := yes | 928 | NO_USB_STARTUP_CHECK := yes |
| 928 | COMMON_VPATH += $(DRIVER_PATH)/bluetooth | 929 | COMMON_VPATH += $(DRIVER_PATH)/bluetooth |
| 929 | SRC += outputselect.c | 930 | SRC += outputselect.c |
| 930 | 931 | ||
| 931 | ifeq ($(strip $(BLUETOOTH_DRIVER)), bluefruit_le) | 932 | ifeq ($(strip $(BLUETOOTH_DRIVER)), bluefruit_le) |
| 932 | OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE -DHAL_USE_SPI=TRUE | 933 | OPT_DEFS += -DHAL_USE_SPI=TRUE |
| 933 | SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c | 934 | SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c |
| 934 | SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp | 935 | SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp |
| 935 | QUANTUM_LIB_SRC += analog.c | 936 | QUANTUM_LIB_SRC += analog.c |
| @@ -937,7 +938,7 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) | |||
| 937 | endif | 938 | endif |
| 938 | 939 | ||
| 939 | ifeq ($(strip $(BLUETOOTH_DRIVER)), rn42) | 940 | ifeq ($(strip $(BLUETOOTH_DRIVER)), rn42) |
| 940 | OPT_DEFS += -DBLUETOOTH_RN42 -DHAL_USE_SERIAL=TRUE | 941 | OPT_DEFS += -DHAL_USE_SERIAL=TRUE |
| 941 | SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c | 942 | SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c |
| 942 | SRC += $(DRIVER_PATH)/bluetooth/rn42.c | 943 | SRC += $(DRIVER_PATH)/bluetooth/rn42.c |
| 943 | QUANTUM_LIB_SRC += uart.c | 944 | QUANTUM_LIB_SRC += uart.c |
diff --git a/docs/ws2812_driver.md b/docs/ws2812_driver.md index f8cad20ce0..6fa65b4288 100644 --- a/docs/ws2812_driver.md +++ b/docs/ws2812_driver.md | |||
| @@ -85,7 +85,7 @@ WS2812_DRIVER = spi | |||
| 85 | 85 | ||
| 86 | Configure the hardware via your config.h: | 86 | Configure the hardware via your config.h: |
| 87 | ```c | 87 | ```c |
| 88 | #define WS2812_SPI SPID1 // default: SPID1 | 88 | #define WS2812_SPI_DRIVER SPID1 // default: SPID1 |
| 89 | #define WS2812_SPI_MOSI_PAL_MODE 5 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 89 | #define WS2812_SPI_MOSI_PAL_MODE 5 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
| 90 | #define WS2812_SPI_SCK_PIN B3 // Required for F072, may be for others -- SCK pin, see the respective datasheet for the appropriate values for your MCU. default: unspecified | 90 | #define WS2812_SPI_SCK_PIN B3 // Required for F072, may be for others -- SCK pin, see the respective datasheet for the appropriate values for your MCU. default: unspecified |
| 91 | #define WS2812_SPI_SCK_PAL_MODE 5 // SCK pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 91 | #define WS2812_SPI_SCK_PAL_MODE 5 // SCK pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/config.h b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h index 7b89744ff2..350b9abad7 100644 --- a/keyboards/4pplet/eagle_viper_rep/rev_a/config.h +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h | |||
| @@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #define BACKLIGHT_PWM_CHANNEL 4 | 20 | #define BACKLIGHT_PWM_CHANNEL 4 |
| 21 | 21 | ||
| 22 | /* Underglow */ | 22 | /* Underglow */ |
| 23 | #define WS2812_SPI SPID1 | 23 | #define WS2812_SPI_DRIVER SPID1 |
| 24 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 24 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 25 | #define WS2812_SPI_SCK_PIN A5 | 25 | #define WS2812_SPI_SCK_PIN A5 |
| 26 | #define WS2812_SPI_SCK_PAL_MODE 0 | 26 | #define WS2812_SPI_SCK_PAL_MODE 0 |
diff --git a/keyboards/aeboards/ext65/rev2/config.h b/keyboards/aeboards/ext65/rev2/config.h index 78d20f300f..c5149f5741 100644 --- a/keyboards/aeboards/ext65/rev2/config.h +++ b/keyboards/aeboards/ext65/rev2/config.h | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | //SPI | 19 | //SPI |
| 20 | #define WS2812_SPI SPID2 | 20 | #define WS2812_SPI_DRIVER SPID2 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 22 | #define WS2812_SPI_SCK_PAL_MODE 0 | 22 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 23 | #define WS2812_SPI_SCK_PIN B13 | 23 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/bt66tech/bt66tech60/config.h b/keyboards/bt66tech/bt66tech60/config.h index 45693628a6..b49e0a11cd 100644 --- a/keyboards/bt66tech/bt66tech60/config.h +++ b/keyboards/bt66tech/bt66tech60/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 29 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/an_c/config.h b/keyboards/cannonkeys/an_c/config.h index bea77ceac2..f3d6237a78 100644 --- a/keyboards/cannonkeys/an_c/config.h +++ b/keyboards/cannonkeys/an_c/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/atlas/config.h b/keyboards/cannonkeys/atlas/config.h index e8d571f7a9..38f684a861 100644 --- a/keyboards/cannonkeys/atlas/config.h +++ b/keyboards/cannonkeys/atlas/config.h | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | /* Locking resynchronize hack */ | 22 | /* Locking resynchronize hack */ |
| 23 | #define LOCKING_RESYNC_ENABLE | 23 | #define LOCKING_RESYNC_ENABLE |
| 24 | 24 | ||
| 25 | #define WS2812_SPI SPID2 | 25 | #define WS2812_SPI_DRIVER SPID2 |
| 26 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 26 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 27 | #define WS2812_SPI_SCK_PAL_MODE 0 | 27 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 28 | #define WS2812_SPI_SCK_PIN B13 | 28 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/cloudline/config.h b/keyboards/cannonkeys/cloudline/config.h index cff0a03945..41e58784b4 100644 --- a/keyboards/cannonkeys/cloudline/config.h +++ b/keyboards/cannonkeys/cloudline/config.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | /* Locking resynchronize hack */ | 12 | /* Locking resynchronize hack */ |
| 13 | #define LOCKING_RESYNC_ENABLE | 13 | #define LOCKING_RESYNC_ENABLE |
| 14 | 14 | ||
| 15 | #define WS2812_SPI SPID2 | 15 | #define WS2812_SPI_DRIVER SPID2 |
| 16 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 16 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 17 | #define WS2812_SPI_SCK_PAL_MODE 0 | 17 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 18 | #define WS2812_SPI_SCK_PIN B13 | 18 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/db60/config.h b/keyboards/cannonkeys/db60/config.h index bea77ceac2..f3d6237a78 100644 --- a/keyboards/cannonkeys/db60/config.h +++ b/keyboards/cannonkeys/db60/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/devastatingtkl/config.h b/keyboards/cannonkeys/devastatingtkl/config.h index bea77ceac2..f3d6237a78 100644 --- a/keyboards/cannonkeys/devastatingtkl/config.h +++ b/keyboards/cannonkeys/devastatingtkl/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/instant60/config.h b/keyboards/cannonkeys/instant60/config.h index bea77ceac2..f3d6237a78 100644 --- a/keyboards/cannonkeys/instant60/config.h +++ b/keyboards/cannonkeys/instant60/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/instant65/config.h b/keyboards/cannonkeys/instant65/config.h index 0adcfdfa92..0b1e0948b3 100644 --- a/keyboards/cannonkeys/instant65/config.h +++ b/keyboards/cannonkeys/instant65/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/malicious_ergo/config.h b/keyboards/cannonkeys/malicious_ergo/config.h index 70d39892fd..f2314b6077 100644 --- a/keyboards/cannonkeys/malicious_ergo/config.h +++ b/keyboards/cannonkeys/malicious_ergo/config.h | |||
| @@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 28 | /* Locking resynchronize hack */ | 28 | /* Locking resynchronize hack */ |
| 29 | #define LOCKING_RESYNC_ENABLE | 29 | #define LOCKING_RESYNC_ENABLE |
| 30 | 30 | ||
| 31 | #define WS2812_SPI SPID2 | 31 | #define WS2812_SPI_DRIVER SPID2 |
| 32 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 32 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 33 | #define WS2812_SPI_SCK_PAL_MODE 0 | 33 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 34 | #define WS2812_SPI_SCK_PIN B13 | 34 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/obliterated75/config.h b/keyboards/cannonkeys/obliterated75/config.h index 0adcfdfa92..0b1e0948b3 100644 --- a/keyboards/cannonkeys/obliterated75/config.h +++ b/keyboards/cannonkeys/obliterated75/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/ortho48/config.h b/keyboards/cannonkeys/ortho48/config.h index 703975ab86..32412b1d54 100644 --- a/keyboards/cannonkeys/ortho48/config.h +++ b/keyboards/cannonkeys/ortho48/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/ortho60/config.h b/keyboards/cannonkeys/ortho60/config.h index 703975ab86..32412b1d54 100644 --- a/keyboards/cannonkeys/ortho60/config.h +++ b/keyboards/cannonkeys/ortho60/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/ortho75/config.h b/keyboards/cannonkeys/ortho75/config.h index 703975ab86..32412b1d54 100644 --- a/keyboards/cannonkeys/ortho75/config.h +++ b/keyboards/cannonkeys/ortho75/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/practice60/config.h b/keyboards/cannonkeys/practice60/config.h index 703975ab86..32412b1d54 100644 --- a/keyboards/cannonkeys/practice60/config.h +++ b/keyboards/cannonkeys/practice60/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/practice65/config.h b/keyboards/cannonkeys/practice65/config.h index 703975ab86..32412b1d54 100644 --- a/keyboards/cannonkeys/practice65/config.h +++ b/keyboards/cannonkeys/practice65/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | 29 | ||
| 30 | /* | 30 | /* |
| 31 | * Feature disable options | 31 | * Feature disable options |
diff --git a/keyboards/cannonkeys/ripple/config.h b/keyboards/cannonkeys/ripple/config.h index 68745474c9..d95e23cfaa 100644 --- a/keyboards/cannonkeys/ripple/config.h +++ b/keyboards/cannonkeys/ripple/config.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | /* Locking resynchronize hack */ | 12 | /* Locking resynchronize hack */ |
| 13 | #define LOCKING_RESYNC_ENABLE | 13 | #define LOCKING_RESYNC_ENABLE |
| 14 | 14 | ||
| 15 | #define WS2812_SPI SPID2 | 15 | #define WS2812_SPI_DRIVER SPID2 |
| 16 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 16 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 17 | #define WS2812_SPI_SCK_PAL_MODE 0 | 17 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 18 | #define WS2812_SPI_SCK_PIN B13 | 18 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/sagittarius/config.h b/keyboards/cannonkeys/sagittarius/config.h index b48d66fd78..b8cdc797d0 100644 --- a/keyboards/cannonkeys/sagittarius/config.h +++ b/keyboards/cannonkeys/sagittarius/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/savage65/config.h b/keyboards/cannonkeys/savage65/config.h index 0adcfdfa92..0b1e0948b3 100644 --- a/keyboards/cannonkeys/savage65/config.h +++ b/keyboards/cannonkeys/savage65/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/serenity/config.h b/keyboards/cannonkeys/serenity/config.h index 4b06e24a1c..5f31f2374d 100644 --- a/keyboards/cannonkeys/serenity/config.h +++ b/keyboards/cannonkeys/serenity/config.h | |||
| @@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | #define BACKLIGHT_PWM_CHANNEL 1 | 21 | #define BACKLIGHT_PWM_CHANNEL 1 |
| 22 | #define BACKLIGHT_PAL_MODE 1 | 22 | #define BACKLIGHT_PAL_MODE 1 |
| 23 | 23 | ||
| 24 | #define WS2812_SPI SPID2 | 24 | #define WS2812_SPI_DRIVER SPID2 |
| 25 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 25 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 26 | #define WS2812_SPI_SCK_PAL_MODE 0 | 26 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 27 | #define WS2812_SPI_SCK_PIN B13 | 27 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/tmov2/config.h b/keyboards/cannonkeys/tmov2/config.h index bea77ceac2..f3d6237a78 100644 --- a/keyboards/cannonkeys/tmov2/config.h +++ b/keyboards/cannonkeys/tmov2/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/cannonkeys/tsukuyomi/config.h b/keyboards/cannonkeys/tsukuyomi/config.h index 0adcfdfa92..0b1e0948b3 100644 --- a/keyboards/cannonkeys/tsukuyomi/config.h +++ b/keyboards/cannonkeys/tsukuyomi/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/eason/aeroboard/config.h b/keyboards/eason/aeroboard/config.h index ff00df878f..2c7d4687b4 100644 --- a/keyboards/eason/aeroboard/config.h +++ b/keyboards/eason/aeroboard/config.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #define WS2812_SPI SPID2 | 6 | #define WS2812_SPI_DRIVER SPID2 |
| 7 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 7 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 8 | 8 | ||
| 9 | /* disable debug print */ | 9 | /* disable debug print */ |
diff --git a/keyboards/handwired/co60/rev7/config.h b/keyboards/handwired/co60/rev7/config.h index 7e50f570ed..b6b7cecec2 100644 --- a/keyboards/handwired/co60/rev7/config.h +++ b/keyboards/handwired/co60/rev7/config.h | |||
| @@ -23,5 +23,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | #define LOCKING_RESYNC_ENABLE | 23 | #define LOCKING_RESYNC_ENABLE |
| 24 | 24 | ||
| 25 | /* RGB underglow configuration */ | 25 | /* RGB underglow configuration */ |
| 26 | #define WS2812_SPI SPID1 | 26 | #define WS2812_SPI_DRIVER SPID1 |
| 27 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 27 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
diff --git a/keyboards/handwired/steamvan/rev1/config.h b/keyboards/handwired/steamvan/rev1/config.h index 88323300f8..a779dcccab 100644 --- a/keyboards/handwired/steamvan/rev1/config.h +++ b/keyboards/handwired/steamvan/rev1/config.h | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | /* Locking resynchronize hack */ | 22 | /* Locking resynchronize hack */ |
| 23 | #define LOCKING_RESYNC_ENABLE | 23 | #define LOCKING_RESYNC_ENABLE |
| 24 | 24 | ||
| 25 | #define WS2812_SPI SPID1 | 25 | #define WS2812_SPI_DRIVER SPID1 |
| 26 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 26 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 27 | 27 | ||
| 28 | #define RGB_MATRIX_KEYPRESSES | 28 | #define RGB_MATRIX_KEYPRESSES |
diff --git a/keyboards/keebsforall/coarse60/config.h b/keyboards/keebsforall/coarse60/config.h index a9cd3b03b0..6ea9b9aae2 100644 --- a/keyboards/keebsforall/coarse60/config.h +++ b/keyboards/keebsforall/coarse60/config.h | |||
| @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 25 | /* Locking resynchronize hack */ | 25 | /* Locking resynchronize hack */ |
| 26 | #define LOCKING_RESYNC_ENABLE | 26 | #define LOCKING_RESYNC_ENABLE |
| 27 | 27 | ||
| 28 | #define WS2812_SPI SPID2 | 28 | #define WS2812_SPI_DRIVER SPID2 |
| 29 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 29 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 30 | #define WS2812_SPI_SCK_PAL_MODE 0 | 30 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PIN B13 | 31 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h index 72011af8df..039f3ffe81 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h | |||
| @@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID1 // default: SPID1 | 20 | #define WS2812_SPI_DRIVER SPID1 // default: SPID1 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 5 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 5 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
| 22 | 22 | ||
| 23 | #ifdef RGB_MATRIX_ENABLE | 23 | #ifdef RGB_MATRIX_ENABLE |
diff --git a/keyboards/mechlovin/zed60/config.h b/keyboards/mechlovin/zed60/config.h index cdbbd6dd0e..13e17a7bb6 100644 --- a/keyboards/mechlovin/zed60/config.h +++ b/keyboards/mechlovin/zed60/config.h | |||
| @@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID1 // default: SPID1 | 20 | #define WS2812_SPI_DRIVER SPID1 // default: SPID1 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
diff --git a/keyboards/mechlovin/zed65/910/config.h b/keyboards/mechlovin/zed65/910/config.h index a5902fa9c1..f21653f5af 100644 --- a/keyboards/mechlovin/zed65/910/config.h +++ b/keyboards/mechlovin/zed65/910/config.h | |||
| @@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID1 // default: SPID1 | 20 | #define WS2812_SPI_DRIVER SPID1 // default: SPID1 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
diff --git a/keyboards/mechlovin/zed65/no_backlight/wearhaus66/config.h b/keyboards/mechlovin/zed65/no_backlight/wearhaus66/config.h index 5cb2a00b88..3bec308941 100644 --- a/keyboards/mechlovin/zed65/no_backlight/wearhaus66/config.h +++ b/keyboards/mechlovin/zed65/no_backlight/wearhaus66/config.h | |||
| @@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID2 // default: SPID1 | 20 | #define WS2812_SPI_DRIVER SPID2 // default: SPID1 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
diff --git a/keyboards/mechlovin/zed65/rev1/config.h b/keyboards/mechlovin/zed65/rev1/config.h index 24efedfffb..4ed1992992 100644 --- a/keyboards/mechlovin/zed65/rev1/config.h +++ b/keyboards/mechlovin/zed65/rev1/config.h | |||
| @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #ifdef RGBLIGHT_ENABLE | 20 | #ifdef RGBLIGHT_ENABLE |
| 21 | #define WS2812_SPI SPID1 // default: SPID1 | 21 | #define WS2812_SPI_DRIVER SPID1 // default: SPID1 |
| 22 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 22 | #define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
| 23 | #define WS2812_SPI_USE_CIRCULAR_BUFFER | 23 | #define WS2812_SPI_USE_CIRCULAR_BUFFER |
| 24 | #endif | 24 | #endif |
diff --git a/keyboards/nack/config.h b/keyboards/nack/config.h index adb2cf5d87..8ac70be2dc 100644 --- a/keyboards/nack/config.h +++ b/keyboards/nack/config.h | |||
| @@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #ifdef RGB_MATRIX_ENABLE | 20 | #ifdef RGB_MATRIX_ENABLE |
| 21 | #define WS2812_SPI SPID1 | 21 | #define WS2812_SPI_DRIVER SPID1 |
| 22 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 22 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 23 | #define RGB_MATRIX_LED_COUNT 52 | 23 | #define RGB_MATRIX_LED_COUNT 52 |
| 24 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs | 24 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs |
diff --git a/keyboards/plywrks/ply8x/config.h b/keyboards/plywrks/ply8x/config.h index 2180b9887f..cccedf8e23 100644 --- a/keyboards/plywrks/ply8x/config.h +++ b/keyboards/plywrks/ply8x/config.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | /* RGB */ | 6 | /* RGB */ |
| 7 | #define WS2812_SPI SPID2 | 7 | #define WS2812_SPI_DRIVER SPID2 |
| 8 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 8 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 9 | #define WS2812_SPI_SCK_PIN B13 | 9 | #define WS2812_SPI_SCK_PIN B13 |
| 10 | #define WS2812_SPI_SCK_PAL_MODE 0 | 10 | #define WS2812_SPI_SCK_PAL_MODE 0 |
diff --git a/keyboards/primekb/meridian/config.h b/keyboards/primekb/meridian/config.h index 3bb4f22006..8593536eec 100644 --- a/keyboards/primekb/meridian/config.h +++ b/keyboards/primekb/meridian/config.h | |||
| @@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID2 | 20 | #define WS2812_SPI_DRIVER SPID2 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 22 | #define WS2812_SPI_SCK_PAL_MODE 0 | 22 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 23 | #define WS2812_SPI_SCK_PIN B13 | 23 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/primekb/meridian/ws2812/config.h b/keyboards/primekb/meridian/ws2812/config.h index 3bb4f22006..8593536eec 100644 --- a/keyboards/primekb/meridian/ws2812/config.h +++ b/keyboards/primekb/meridian/ws2812/config.h | |||
| @@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #define WS2812_SPI SPID2 | 20 | #define WS2812_SPI_DRIVER SPID2 |
| 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 21 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 22 | #define WS2812_SPI_SCK_PAL_MODE 0 | 22 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 23 | #define WS2812_SPI_SCK_PIN B13 | 23 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/projectkb/alice/rev1/config.h b/keyboards/projectkb/alice/rev1/config.h index 2692965fbf..dca7542513 100644 --- a/keyboards/projectkb/alice/rev1/config.h +++ b/keyboards/projectkb/alice/rev1/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/projectkb/alice/rev2/config.h b/keyboards/projectkb/alice/rev2/config.h index 8bb661f90b..f5d9ca0c3e 100644 --- a/keyboards/projectkb/alice/rev2/config.h +++ b/keyboards/projectkb/alice/rev2/config.h | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | /* Locking resynchronize hack */ | 26 | /* Locking resynchronize hack */ |
| 27 | #define LOCKING_RESYNC_ENABLE | 27 | #define LOCKING_RESYNC_ENABLE |
| 28 | 28 | ||
| 29 | #define WS2812_SPI SPID2 | 29 | #define WS2812_SPI_DRIVER SPID2 |
| 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 30 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 31 | #define WS2812_SPI_SCK_PAL_MODE 0 | 31 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 32 | #define WS2812_SPI_SCK_PIN B13 | 32 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/rart/rartlice/config.h b/keyboards/rart/rartlice/config.h index 9673097c38..116f8d544b 100644 --- a/keyboards/rart/rartlice/config.h +++ b/keyboards/rart/rartlice/config.h | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | /* Locking resynchronize hack */ | 22 | /* Locking resynchronize hack */ |
| 23 | #define LOCKING_RESYNC_ENABLE | 23 | #define LOCKING_RESYNC_ENABLE |
| 24 | 24 | ||
| 25 | #define WS2812_SPI SPID2 | 25 | #define WS2812_SPI_DRIVER SPID2 |
| 26 | 26 | ||
| 27 | /* | 27 | /* |
| 28 | * Feature disable options | 28 | * Feature disable options |
diff --git a/keyboards/riot_pad/config.h b/keyboards/riot_pad/config.h index 97dcb1de3c..4c5de878dc 100644 --- a/keyboards/riot_pad/config.h +++ b/keyboards/riot_pad/config.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | #pragma once | 3 | #pragma once |
| 4 | 4 | ||
| 5 | #define WS2812_SPI SPID1 | 5 | #define WS2812_SPI_DRIVER SPID1 |
| 6 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 6 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 7 | #define WS2812_SPI_SCK_PAL_MODE 0 | 7 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 8 | #define WS2812_SPI_SCK_PIN A5 | 8 | #define WS2812_SPI_SCK_PIN A5 |
diff --git a/keyboards/spaceholdings/nebula12/config.h b/keyboards/spaceholdings/nebula12/config.h index ceeed9e1a7..d6e8f0e196 100755 --- a/keyboards/spaceholdings/nebula12/config.h +++ b/keyboards/spaceholdings/nebula12/config.h | |||
| @@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 35 | #define I2C1_TIMINGR_SCLH 3U | 35 | #define I2C1_TIMINGR_SCLH 3U |
| 36 | #define I2C1_TIMINGR_SCLL 9U | 36 | #define I2C1_TIMINGR_SCLL 9U |
| 37 | 37 | ||
| 38 | #define WS2812_SPI SPID2 // default: SPID1 | 38 | #define WS2812_SPI_DRIVER SPID2 // default: SPID1 |
| 39 | #define WS2812_SPI_MOSI_PAL_MODE 0 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 | 39 | #define WS2812_SPI_MOSI_PAL_MODE 0 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5 |
| 40 | #define WS2812_SPI_SCK_PAL_MODE 0 | 40 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 41 | #define WS2812_SPI_SCK_PIN B13 | 41 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/keyboards/vertex/angle65/config.h b/keyboards/vertex/angle65/config.h index b3cf8b2507..018bad7cdb 100644 --- a/keyboards/vertex/angle65/config.h +++ b/keyboards/vertex/angle65/config.h | |||
| @@ -18,5 +18,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | 18 | ||
| 19 | #define SOLENOID_PIN A2 | 19 | #define SOLENOID_PIN A2 |
| 20 | 20 | ||
| 21 | #define WS2812_SPI SPID2 | 21 | #define WS2812_SPI_DRIVER SPID2 |
| 22 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 22 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
diff --git a/keyboards/vertex/arc60/config.h b/keyboards/vertex/arc60/config.h index 38b830e3df..cab5a59af0 100644 --- a/keyboards/vertex/arc60/config.h +++ b/keyboards/vertex/arc60/config.h | |||
| @@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #define WS2812_SPI SPID2 | 19 | #define WS2812_SPI_DRIVER SPID2 |
| 20 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 20 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 21 | 21 | ||
| 22 | /* | 22 | /* |
diff --git a/keyboards/vertex/arc60h/config.h b/keyboards/vertex/arc60h/config.h index 38b830e3df..cab5a59af0 100644 --- a/keyboards/vertex/arc60h/config.h +++ b/keyboards/vertex/arc60h/config.h | |||
| @@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #define WS2812_SPI SPID2 | 19 | #define WS2812_SPI_DRIVER SPID2 |
| 20 | #define WS2812_SPI_MOSI_PAL_MODE 5 | 20 | #define WS2812_SPI_MOSI_PAL_MODE 5 |
| 21 | 21 | ||
| 22 | /* | 22 | /* |
diff --git a/keyboards/zoo/wampus/config.h b/keyboards/zoo/wampus/config.h index eafc776bef..e0ddfaca88 100644 --- a/keyboards/zoo/wampus/config.h +++ b/keyboards/zoo/wampus/config.h | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | #define BACKLIGHT_PAL_MODE 1 | 22 | #define BACKLIGHT_PAL_MODE 1 |
| 23 | 23 | ||
| 24 | // SPI RGB Driver | 24 | // SPI RGB Driver |
| 25 | #define WS2812_SPI SPID2 | 25 | #define WS2812_SPI_DRIVER SPID2 |
| 26 | #define WS2812_SPI_MOSI_PAL_MODE 0 | 26 | #define WS2812_SPI_MOSI_PAL_MODE 0 |
| 27 | #define WS2812_SPI_SCK_PAL_MODE 0 | 27 | #define WS2812_SPI_SCK_PAL_MODE 0 |
| 28 | #define WS2812_SPI_SCK_PIN B13 | 28 | #define WS2812_SPI_SCK_PIN B13 |
diff --git a/platforms/chibios/boards/BONSAI_C4/configs/config.h b/platforms/chibios/boards/BONSAI_C4/configs/config.h index c5dbb25c45..7539ebed41 100644 --- a/platforms/chibios/boards/BONSAI_C4/configs/config.h +++ b/platforms/chibios/boards/BONSAI_C4/configs/config.h | |||
| @@ -66,7 +66,7 @@ | |||
| 66 | #endif | 66 | #endif |
| 67 | 67 | ||
| 68 | // WS2812-style LED control on pin A10 | 68 | // WS2812-style LED control on pin A10 |
| 69 | #ifdef WS2812_DRIVER_PWM | 69 | #ifdef WS2812_PWM |
| 70 | # ifndef WS2812_DI_PIN | 70 | # ifndef WS2812_DI_PIN |
| 71 | # define WS2812_DI_PIN PAL_LINE(GPIOA, 10) | 71 | # define WS2812_DI_PIN PAL_LINE(GPIOA, 10) |
| 72 | # endif | 72 | # endif |
diff --git a/platforms/chibios/boards/BONSAI_C4/configs/halconf.h b/platforms/chibios/boards/BONSAI_C4/configs/halconf.h index 7887e7c9ba..6bab6fbcff 100644 --- a/platforms/chibios/boards/BONSAI_C4/configs/halconf.h +++ b/platforms/chibios/boards/BONSAI_C4/configs/halconf.h | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | # endif | 32 | # endif |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #ifdef WS2812_DRIVER_PWM | 35 | #ifdef WS2812_PWM |
| 36 | # ifndef HAL_USE_PWM | 36 | # ifndef HAL_USE_PWM |
| 37 | # define HAL_USE_PWM TRUE | 37 | # define HAL_USE_PWM TRUE |
| 38 | # endif | 38 | # endif |
diff --git a/platforms/chibios/drivers/serial.c b/platforms/chibios/drivers/serial.c index f087d0c2ed..f199716a2b 100644 --- a/platforms/chibios/drivers/serial.c +++ b/platforms/chibios/drivers/serial.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include <hal.h> | 10 | #include <hal.h> |
| 11 | 11 | ||
| 12 | // TODO: resolve/remove build warnings | 12 | // TODO: resolve/remove build warnings |
| 13 | #if defined(RGBLIGHT_ENABLE) && defined(RGBLED_SPLIT) && defined(PROTOCOL_CHIBIOS) && defined(WS2812_DRIVER_BITBANG) | 13 | #if defined(RGBLIGHT_ENABLE) && defined(RGBLED_SPLIT) && defined(PROTOCOL_CHIBIOS) && defined(WS2812_BITBANG) |
| 14 | # warning "RGBLED_SPLIT not supported with bitbang WS2812 driver" | 14 | # warning "RGBLED_SPLIT not supported with bitbang WS2812 driver" |
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
diff --git a/platforms/chibios/drivers/ws2812_spi.c b/platforms/chibios/drivers/ws2812_spi.c index f56236a8b8..01162f07f4 100644 --- a/platforms/chibios/drivers/ws2812_spi.c +++ b/platforms/chibios/drivers/ws2812_spi.c | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | /* Adapted from https://github.com/gamazeps/ws2812b-chibios-SPIDMA/ */ | 6 | /* Adapted from https://github.com/gamazeps/ws2812b-chibios-SPIDMA/ */ |
| 7 | 7 | ||
| 8 | // Define the spi your LEDs are plugged to here | 8 | // Define the spi your LEDs are plugged to here |
| 9 | #ifndef WS2812_SPI | 9 | #ifndef WS2812_SPI_DRIVER |
| 10 | # define WS2812_SPI SPID1 | 10 | # define WS2812_SPI_DRIVER SPID1 |
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | #ifndef WS2812_SPI_MOSI_PAL_MODE | 13 | #ifndef WS2812_SPI_MOSI_PAL_MODE |
| @@ -179,11 +179,11 @@ void ws2812_init(void) { | |||
| 179 | #endif | 179 | #endif |
| 180 | }; | 180 | }; |
| 181 | 181 | ||
| 182 | spiAcquireBus(&WS2812_SPI); /* Acquire ownership of the bus. */ | 182 | spiAcquireBus(&WS2812_SPI_DRIVER); /* Acquire ownership of the bus. */ |
| 183 | spiStart(&WS2812_SPI, &spicfg); /* Setup transfer parameters. */ | 183 | spiStart(&WS2812_SPI_DRIVER, &spicfg); /* Setup transfer parameters. */ |
| 184 | spiSelect(&WS2812_SPI); /* Slave Select assertion. */ | 184 | spiSelect(&WS2812_SPI_DRIVER); /* Slave Select assertion. */ |
| 185 | #ifdef WS2812_SPI_USE_CIRCULAR_BUFFER | 185 | #ifdef WS2812_SPI_USE_CIRCULAR_BUFFER |
| 186 | spiStartSend(&WS2812_SPI, ARRAY_SIZE(txbuf), txbuf); | 186 | spiStartSend(&WS2812_SPI_DRIVER, ARRAY_SIZE(txbuf), txbuf); |
| 187 | #endif | 187 | #endif |
| 188 | } | 188 | } |
| 189 | 189 | ||
| @@ -202,9 +202,9 @@ void ws2812_setleds(rgb_led_t* ledarray, uint16_t leds) { | |||
| 202 | // Instead spiSend can be used to send synchronously (or the thread logic can be added back). | 202 | // Instead spiSend can be used to send synchronously (or the thread logic can be added back). |
| 203 | #ifndef WS2812_SPI_USE_CIRCULAR_BUFFER | 203 | #ifndef WS2812_SPI_USE_CIRCULAR_BUFFER |
| 204 | # ifdef WS2812_SPI_SYNC | 204 | # ifdef WS2812_SPI_SYNC |
| 205 | spiSend(&WS2812_SPI, ARRAY_SIZE(txbuf), txbuf); | 205 | spiSend(&WS2812_SPI_DRIVER, ARRAY_SIZE(txbuf), txbuf); |
| 206 | # else | 206 | # else |
| 207 | spiStartSend(&WS2812_SPI, ARRAY_SIZE(txbuf), txbuf); | 207 | spiStartSend(&WS2812_SPI_DRIVER, ARRAY_SIZE(txbuf), txbuf); |
| 208 | # endif | 208 | # endif |
| 209 | #endif | 209 | #endif |
| 210 | } | 210 | } |
