aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/rtc_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32/rtc_lld.h')
-rw-r--r--os/hal/platforms/STM32/rtc_lld.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/rtc_lld.h b/os/hal/platforms/STM32/rtc_lld.h
index fe51df254..a0490b29a 100644
--- a/os/hal/platforms/STM32/rtc_lld.h
+++ b/os/hal/platforms/STM32/rtc_lld.h
@@ -47,6 +47,14 @@
#define RTC_SUPPORTS_CALLBACKS TRUE
#endif
+/**
+ * @brief Clock source selecting. LSE by default.
+ */
+#if !defined(RTC_CLOCK_SOURCE) || defined(__DOXYGEN__)
+#define RTC_CLOCK_SOURCE RCC_BDCR_RTCSEL_LSE
+#endif
+
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/