Skip to content

Commit 9d4347b

Browse files
authored
Enable RP2040 support for apa102 RGB LED driver (#21908)
1 parent 32c90bf commit 9d4347b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/led/apa102.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# elif defined(PROTOCOL_CHIBIOS)
2525
# include "hal.h"
2626
# include "chibios_config.h"
27-
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103)
27+
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103) || defined(MCU_RP)
2828
# define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns
2929
# else
3030
# error APA102_NOPS configuration required

0 commit comments

Comments
 (0)