aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx/RTC
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-31 16:32:34 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-31 16:32:34 +0000
commit5e62285d1745cd498f89b1a42ae4b28b3ece59a2 (patch)
treea7397da8af3079568f0f0d6feb29be9f7ccd62dd /testhal/STM32F1xx/RTC
parent3da3cc27891650180b1e725d1efb6f07005e9d3e (diff)
downloadChibiOS-5e62285d1745cd498f89b1a42ae4b28b3ece59a2.tar.gz
ChibiOS-5e62285d1745cd498f89b1a42ae4b28b3ece59a2.tar.bz2
ChibiOS-5e62285d1745cd498f89b1a42ae4b28b3ece59a2.zip
RTC. Final polishing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3275 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx/RTC')
-rw-r--r--testhal/STM32F1xx/RTC/halconf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/testhal/STM32F1xx/RTC/halconf.h b/testhal/STM32F1xx/RTC/halconf.h
index 219bfd99e..553decda8 100644
--- a/testhal/STM32F1xx/RTC/halconf.h
+++ b/testhal/STM32F1xx/RTC/halconf.h
@@ -212,6 +212,13 @@
#define RTC_SUPPORTS_CALLBACKS FALSE
#endif
+/**
+ * @brief Clock source selecting. LSE by default.
+ */
+#if !defined(RTC_CLOCK_SOURCE) || defined(__DOXYGEN__)
+#define RTC_CLOCK_SOURCE RCC_BDCR_RTCSEL_LSE
+#endif
+
/*===========================================================================*/
/* MAC driver related settings. */
/*===========================================================================*/