aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8L/hal_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM8L/hal_lld.h')
-rw-r--r--os/hal/platforms/STM8L/hal_lld.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM8L/hal_lld.h b/os/hal/platforms/STM8L/hal_lld.h
index c7a62baae..891f2650b 100644
--- a/os/hal/platforms/STM8L/hal_lld.h
+++ b/os/hal/platforms/STM8L/hal_lld.h
@@ -228,7 +228,7 @@
#define RTCCLK (LSICLK / (1 << STM8L_RTCCLK_DIVIDER))
#elif STM8L_RTCCLK_SOURCE == CLK_RTCSEL_HSE
#define RTCCLK (HSECLK / (1 << STM8L_RTCCLK_DIVIDER))
-#elif STM8L_SYSCLK_SOURCE == CLK_RTCSEL_LSE
+#elif STM8L_RTCCLK_SOURCE == CLK_RTCSEL_LSE
#define RTCCLK (LSECLK / (1 << STM8L_RTCCLK_DIVIDER))
#else
#error "specified invalid RTCCLK source"