summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-08-17 17:39:16 -0700
committerGitHub <noreply@github.com>2023-08-18 01:39:16 +0100
commit96d90a57d8a536667b3365b8250e6fd1a307a829 (patch)
treed9946733a9a63d771a95663993825c4d953b6e6f
parent89a30efd2ddd017ab00ea3552086f3f551cce77c (diff)
[Bug] Fix compilation error for APA on ChibiOS (#21773)
-rw-r--r--drivers/led/apa102.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/led/apa102.c b/drivers/led/apa102.c
index 5cfa2f8c32..766d8cd2eb 100644
--- a/drivers/led/apa102.c
+++ b/drivers/led/apa102.c
@@ -22,8 +22,8 @@
# if defined(__AVR__)
# define APA102_NOPS 0 // AVR at 16 MHz already spends 62.5 ns per clock, so no extra delay is needed
# elif defined(PROTOCOL_CHIBIOS)
-
# include "hal.h"
+# include "chibios_config.h"
# if defined(STM32F0XX) || defined(STM32F1XX) || defined(STM32F3XX) || defined(STM32F4XX) || defined(STM32L0XX) || defined(GD32VF103)
# define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) // This calculates how many loops of 4 nops to run to delay 100 ns
# else