summaryrefslogtreecommitdiff
path: root/platforms/chibios/chibios_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/chibios/chibios_config.h')
-rw-r--r--platforms/chibios/chibios_config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/platforms/chibios/chibios_config.h b/platforms/chibios/chibios_config.h
index 52632a051e..1f8a7842fe 100644
--- a/platforms/chibios/chibios_config.h
+++ b/platforms/chibios/chibios_config.h
@@ -71,7 +71,11 @@
// STM32 compatibility
#if defined(MCU_STM32)
-# define CPU_CLOCK STM32_SYSCLK
+# if defined(STM32_CORE_CK)
+# define CPU_CLOCK STM32_CORE_CK
+# else
+# define CPU_CLOCK STM32_SYSCLK
+# endif
# if defined(STM32F1XX)
# define USE_GPIOV1