Skip to content

Commit 21ed9b4

Browse files
authored
Simplify more feature driver defines (#22090)
1 parent 61702b2 commit 21ed9b4

File tree

51 files changed

+63
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+63
-62
lines changed

builddefs/common_features.mk

+6-5
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
602602
$(call CATASTROPHIC_ERROR,Invalid WS2812_DRIVER,WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver)
603603
endif
604604

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:]'))
606606

607607
SRC += ws2812_$(strip $(WS2812_DRIVER)).c
608608

@@ -739,17 +739,16 @@ ifeq ($(strip $(HAPTIC_ENABLE)),yes)
739739
ifeq ($(filter $(HAPTIC_DRIVER),$(VALID_HAPTIC_DRIVER_TYPES)),)
740740
$(call CATASTROPHIC_ERROR,Invalid HAPTIC_DRIVER,HAPTIC_DRIVER="$(HAPTIC_DRIVER)" is not a valid Haptic driver)
741741
else
742+
OPT_DEFS += -DHAPTIC_$(strip $(shell echo $(HAPTIC_DRIVER) | tr '[:lower:]' '[:upper:]'))
742743
COMMON_VPATH += $(DRIVER_PATH)/haptic
743744

744745
ifeq ($(strip $(HAPTIC_DRIVER)), drv2605l)
745746
SRC += drv2605l.c
746747
QUANTUM_LIB_SRC += i2c_master.c
747-
OPT_DEFS += -DHAPTIC_DRV2605L
748748
endif
749749

750750
ifeq ($(strip $(HAPTIC_DRIVER)), solenoid)
751751
SRC += solenoid.c
752-
OPT_DEFS += -DHAPTIC_SOLENOID
753752
endif
754753
endif
755754
endif
@@ -772,6 +771,7 @@ ifeq ($(strip $(OLED_ENABLE)), yes)
772771
$(call CATASTROPHIC_ERROR,Invalid OLED_TRANSPORT,OLED_TRANSPORT="$(OLED_TRANSPORT)" is not a valid OLED transport)
773772
else
774773
OPT_DEFS += -DOLED_ENABLE
774+
OPT_DEFS += -DOLED_$(strip $(shell echo $(OLED_DRIVER) | tr '[:lower:]' '[:upper:]'))
775775
COMMON_VPATH += $(DRIVER_PATH)/oled
776776
ifneq ($(strip $(OLED_DRIVER)), custom)
777777
SRC += oled_driver.c
@@ -924,20 +924,21 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
924924
$(call CATASTROPHIC_ERROR,Invalid BLUETOOTH_DRIVER,BLUETOOTH_DRIVER="$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
925925
endif
926926
OPT_DEFS += -DBLUETOOTH_ENABLE
927+
OPT_DEFS += -DBLUETOOTH_$(strip $(shell echo $(BLUETOOTH_DRIVER) | tr '[:lower:]' '[:upper:]'))
927928
NO_USB_STARTUP_CHECK := yes
928929
COMMON_VPATH += $(DRIVER_PATH)/bluetooth
929930
SRC += outputselect.c
930931

931932
ifeq ($(strip $(BLUETOOTH_DRIVER)), bluefruit_le)
932-
OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE -DHAL_USE_SPI=TRUE
933+
OPT_DEFS += -DHAL_USE_SPI=TRUE
933934
SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c
934935
SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp
935936
QUANTUM_LIB_SRC += analog.c
936937
QUANTUM_LIB_SRC += spi_master.c
937938
endif
938939

939940
ifeq ($(strip $(BLUETOOTH_DRIVER)), rn42)
940-
OPT_DEFS += -DBLUETOOTH_RN42 -DHAL_USE_SERIAL=TRUE
941+
OPT_DEFS += -DHAL_USE_SERIAL=TRUE
941942
SRC += $(DRIVER_PATH)/bluetooth/bluetooth.c
942943
SRC += $(DRIVER_PATH)/bluetooth/rn42.c
943944
QUANTUM_LIB_SRC += uart.c

docs/ws2812_driver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ WS2812_DRIVER = spi
8585

8686
Configure the hardware via your config.h:
8787
```c
88-
#define WS2812_SPI SPID1 // default: SPID1
88+
#define WS2812_SPI_DRIVER SPID1 // default: SPID1
8989
#define WS2812_SPI_MOSI_PAL_MODE 5 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
9090
#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
9191
#define WS2812_SPI_SCK_PAL_MODE 5 // SCK pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5

keyboards/4pplet/eagle_viper_rep/rev_a/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
#define BACKLIGHT_PWM_CHANNEL 4
2121

2222
/* Underglow */
23-
#define WS2812_SPI SPID1
23+
#define WS2812_SPI_DRIVER SPID1
2424
#define WS2812_SPI_MOSI_PAL_MODE 0
2525
#define WS2812_SPI_SCK_PIN A5
2626
#define WS2812_SPI_SCK_PAL_MODE 0

keyboards/aeboards/ext65/rev2/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#pragma once
1818

1919
//SPI
20-
#define WS2812_SPI SPID2
20+
#define WS2812_SPI_DRIVER SPID2
2121
#define WS2812_SPI_MOSI_PAL_MODE 0
2222
#define WS2812_SPI_SCK_PAL_MODE 0
2323
#define WS2812_SPI_SCK_PIN B13

keyboards/bt66tech/bt66tech60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929
#define WS2812_SPI_MOSI_PAL_MODE 5
3030
/*
3131
* Feature disable options

keyboards/cannonkeys/an_c/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/atlas/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
/* Locking resynchronize hack */
2323
#define LOCKING_RESYNC_ENABLE
2424

25-
#define WS2812_SPI SPID2
25+
#define WS2812_SPI_DRIVER SPID2
2626
#define WS2812_SPI_MOSI_PAL_MODE 0
2727
#define WS2812_SPI_SCK_PAL_MODE 0
2828
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/cloudline/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* Locking resynchronize hack */
1313
#define LOCKING_RESYNC_ENABLE
1414

15-
#define WS2812_SPI SPID2
15+
#define WS2812_SPI_DRIVER SPID2
1616
#define WS2812_SPI_MOSI_PAL_MODE 0
1717
#define WS2812_SPI_SCK_PAL_MODE 0
1818
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/db60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/devastatingtkl/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/instant60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/instant65/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/malicious_ergo/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
/* Locking resynchronize hack */
2929
#define LOCKING_RESYNC_ENABLE
3030

31-
#define WS2812_SPI SPID2
31+
#define WS2812_SPI_DRIVER SPID2
3232
#define WS2812_SPI_MOSI_PAL_MODE 0
3333
#define WS2812_SPI_SCK_PAL_MODE 0
3434
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/obliterated75/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/ortho48/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929

3030
/*
3131
* Feature disable options

keyboards/cannonkeys/ortho60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929

3030
/*
3131
* Feature disable options

keyboards/cannonkeys/ortho75/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929

3030
/*
3131
* Feature disable options

keyboards/cannonkeys/practice60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929

3030
/*
3131
* Feature disable options

keyboards/cannonkeys/practice65/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929

3030
/*
3131
* Feature disable options

keyboards/cannonkeys/ripple/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* Locking resynchronize hack */
1313
#define LOCKING_RESYNC_ENABLE
1414

15-
#define WS2812_SPI SPID2
15+
#define WS2812_SPI_DRIVER SPID2
1616
#define WS2812_SPI_MOSI_PAL_MODE 0
1717
#define WS2812_SPI_SCK_PAL_MODE 0
1818
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/sagittarius/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/savage65/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/serenity/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
#define BACKLIGHT_PWM_CHANNEL 1
2222
#define BACKLIGHT_PAL_MODE 1
2323

24-
#define WS2812_SPI SPID2
24+
#define WS2812_SPI_DRIVER SPID2
2525
#define WS2812_SPI_MOSI_PAL_MODE 0
2626
#define WS2812_SPI_SCK_PAL_MODE 0
2727
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/tmov2/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/cannonkeys/tsukuyomi/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

keyboards/eason/aeroboard/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#pragma once
55

6-
#define WS2812_SPI SPID2
6+
#define WS2812_SPI_DRIVER SPID2
77
#define WS2812_SPI_MOSI_PAL_MODE 5
88

99
/* disable debug print */

keyboards/handwired/co60/rev7/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2323
#define LOCKING_RESYNC_ENABLE
2424

2525
/* RGB underglow configuration */
26-
#define WS2812_SPI SPID1
26+
#define WS2812_SPI_DRIVER SPID1
2727
#define WS2812_SPI_MOSI_PAL_MODE 5

keyboards/handwired/steamvan/rev1/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
/* Locking resynchronize hack */
2323
#define LOCKING_RESYNC_ENABLE
2424

25-
#define WS2812_SPI SPID1
25+
#define WS2812_SPI_DRIVER SPID1
2626
#define WS2812_SPI_MOSI_PAL_MODE 5
2727

2828
#define RGB_MATRIX_KEYPRESSES

keyboards/keebsforall/coarse60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
/* Locking resynchronize hack */
2626
#define LOCKING_RESYNC_ENABLE
2727

28-
#define WS2812_SPI SPID2
28+
#define WS2812_SPI_DRIVER SPID2
2929
#define WS2812_SPI_MOSI_PAL_MODE 0
3030
#define WS2812_SPI_SCK_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PIN B13

keyboards/mechlovin/adelais/rgb_led/rev3/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID1 // default: SPID1
20+
#define WS2812_SPI_DRIVER SPID1 // default: SPID1
2121
#define WS2812_SPI_MOSI_PAL_MODE 5 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
2222

2323
#ifdef RGB_MATRIX_ENABLE

keyboards/mechlovin/zed60/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID1 // default: SPID1
20+
#define WS2812_SPI_DRIVER SPID1 // default: SPID1
2121
#define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5

keyboards/mechlovin/zed65/910/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID1 // default: SPID1
20+
#define WS2812_SPI_DRIVER SPID1 // default: SPID1
2121
#define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5

keyboards/mechlovin/zed65/no_backlight/wearhaus66/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID2 // default: SPID1
20+
#define WS2812_SPI_DRIVER SPID2 // default: SPID1
2121
#define WS2812_SPI_MOSI_PAL_MODE 0 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5

keyboards/mechlovin/zed65/rev1/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#pragma once
1919

2020
#ifdef RGBLIGHT_ENABLE
21-
#define WS2812_SPI SPID1 // default: SPID1
21+
#define WS2812_SPI_DRIVER SPID1 // default: SPID1
2222
#define WS2812_SPI_MOSI_PAL_MODE 6 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
2323
#define WS2812_SPI_USE_CIRCULAR_BUFFER
2424
#endif

keyboards/nack/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#pragma once
1919

2020
#ifdef RGB_MATRIX_ENABLE
21-
#define WS2812_SPI SPID1
21+
#define WS2812_SPI_DRIVER SPID1
2222
#define WS2812_SPI_MOSI_PAL_MODE 5
2323
#define RGB_MATRIX_LED_COUNT 52
2424
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs

keyboards/plywrks/ply8x/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#pragma once
55

66
/* RGB */
7-
#define WS2812_SPI SPID2
7+
#define WS2812_SPI_DRIVER SPID2
88
#define WS2812_SPI_MOSI_PAL_MODE 0
99
#define WS2812_SPI_SCK_PIN B13
1010
#define WS2812_SPI_SCK_PAL_MODE 0

keyboards/primekb/meridian/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID2
20+
#define WS2812_SPI_DRIVER SPID2
2121
#define WS2812_SPI_MOSI_PAL_MODE 0
2222
#define WS2812_SPI_SCK_PAL_MODE 0
2323
#define WS2812_SPI_SCK_PIN B13

keyboards/primekb/meridian/ws2812/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define WS2812_SPI SPID2
20+
#define WS2812_SPI_DRIVER SPID2
2121
#define WS2812_SPI_MOSI_PAL_MODE 0
2222
#define WS2812_SPI_SCK_PAL_MODE 0
2323
#define WS2812_SPI_SCK_PIN B13

keyboards/projectkb/alice/rev1/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
/* Locking resynchronize hack */
2727
#define LOCKING_RESYNC_ENABLE
2828

29-
#define WS2812_SPI SPID2
29+
#define WS2812_SPI_DRIVER SPID2
3030
#define WS2812_SPI_MOSI_PAL_MODE 0
3131
#define WS2812_SPI_SCK_PAL_MODE 0
3232
#define WS2812_SPI_SCK_PIN B13

0 commit comments

Comments
 (0)