diff options
author | Drashna Jaelre <[email protected]> | 2023-09-06 10:30:10 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-06 19:30:10 +0200 |
commit | 9d4347b699daab3be51f380b732e853126f817e8 (patch) | |
tree | 6522d0de75cff2a220d4164b72c2f2faa7a1ec61 /drivers/led/apa102.c | |
parent | 32c90bf026f6775d71ea8c41d7db21ad1e8a1170 (diff) | |
download | qmk_firmware-9d4347b699daab3be51f380b732e853126f817e8.tar.gz qmk_firmware-9d4347b699daab3be51f380b732e853126f817e8.zip |
Enable RP2040 support for apa102 RGB LED driver (#21908)
Diffstat (limited to 'drivers/led/apa102.c')
-rw-r--r-- | drivers/led/apa102.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/led/apa102.c b/drivers/led/apa102.c index 87db19523c..527519eb8a 100644 --- a/drivers/led/apa102.c +++ b/drivers/led/apa102.c @@ -24,7 +24,7 @@ # elif defined(PROTOCOL_CHIBIOS) # include "hal.h" # include "chibios_config.h" -# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103) +# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103) || defined(MCU_RP) # define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns # else # error APA102_NOPS configuration required |