aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h2
-rw-r--r--os/hal/platforms/STM8L/hal_lld.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h
index ea9759ad5..69a205fb6 100644
--- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h
+++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h
@@ -28,7 +28,7 @@
/*
* HAL general settings.
*/
-#define STM8L_NO_CLOCK_INIT TRUE
+#define STM8L_NO_CLOCK_INIT FALSE
#define STM8L_HSI_ENABLED TRUE
#define STM8L_LSI_ENABLED TRUE
#define STM8L_HSE_ENABLED FALSE
diff --git a/os/hal/platforms/STM8L/hal_lld.h b/os/hal/platforms/STM8L/hal_lld.h
index a26e6ba84..1df041782 100644
--- a/os/hal/platforms/STM8L/hal_lld.h
+++ b/os/hal/platforms/STM8L/hal_lld.h
@@ -217,7 +217,7 @@
#error "requested LSE clock is not enabled"
#endif
-#if !STM8L_CLOCK_INIT
+#if STM8L_NO_CLOCK_INIT
#define SYSCLK (HSICLK / 8)
#elif STM8L_SYSCLK_SOURCE == CLK_SYSSEL_HSI
#define SYSCLK (HSICLK / (1 << STM8L_SYSCLK_DIVIDER))
@@ -231,7 +231,7 @@
#error "specified invalid SYSCLK source"
#endif
-#if !STM8L_CLOCK_INIT
+#if STM8L_NO_CLOCK_INIT
#define RTCCLK 0
#elif STM8L_RTCCLK_SOURCE == CLK_RTCSEL_HSI
#define RTCCLK (HSICLK / (1 << STM8L_RTCCLK_DIVIDER))