diff options
| author | HorrorTroll <sonicvipduc@gmail.com> | 2025-01-14 12:20:36 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-13 21:20:36 -0800 |
| commit | 7f1c236c75b0a92b952882c6f211f78157978f63 (patch) | |
| tree | 70b464d064e35ebe0d32c70fb4233778d5d75dde /drivers | |
| parent | eb29f8befc61cec38293fbc368cc90d6eff79771 (diff) | |
Bugfix and update for AT32F415 (#24807)
Diffstat (limited to 'drivers')
| -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 6e87d48b96..6a13153374 100644 --- a/drivers/led/apa102.c +++ b/drivers/led/apa102.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | # elif defined(PROTOCOL_CHIBIOS) | 24 | # elif defined(PROTOCOL_CHIBIOS) |
| 25 | # include "hal.h" | 25 | # include "hal.h" |
| 26 | # include "chibios_config.h" | 26 | # include "chibios_config.h" |
| 27 | # if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103) || defined(MCU_RP) | 27 | # if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(AT32F415) || defined(GD32VF103) || defined(MCU_RP) |
| 28 | # define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns | 28 | # define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns |
| 29 | # else | 29 | # else |
| 30 | # error APA102_NOPS configuration required | 30 | # error APA102_NOPS configuration required |
