Enable RP2040 support for apa102 RGB LED driver (#21908)
This commit is contained in:
parent
32c90bf026
commit
9d4347b699
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
# elif defined(PROTOCOL_CHIBIOS)
|
# elif defined(PROTOCOL_CHIBIOS)
|
||||||
# include "hal.h"
|
# include "hal.h"
|
||||||
# include "chibios_config.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
|
# define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns
|
||||||
# else
|
# else
|
||||||
# error APA102_NOPS configuration required
|
# error APA102_NOPS configuration required
|
||||||
|
|
Loading…
Reference in a new issue