aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-31 17:49:18 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-31 17:49:18 +0000
commit7194b7a7fe49bab8d9422dbc2e78d1ae2d39dc9e (patch)
tree9786d3d3c745d0794d74cd755dc0527dcd24fdbb /os/hal
parent5e62285d1745cd498f89b1a42ae4b28b3ece59a2 (diff)
downloadChibiOS-7194b7a7fe49bab8d9422dbc2e78d1ae2d39dc9e.tar.gz
ChibiOS-7194b7a7fe49bab8d9422dbc2e78d1ae2d39dc9e.tar.bz2
ChibiOS-7194b7a7fe49bab8d9422dbc2e78d1ae2d39dc9e.zip
RTC. Small code improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3276 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/platforms/STM32/rtc_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/rtc_lld.c b/os/hal/platforms/STM32/rtc_lld.c
index ce483d3f9..3f8468bae 100644
--- a/os/hal/platforms/STM32/rtc_lld.c
+++ b/os/hal/platforms/STM32/rtc_lld.c
@@ -245,6 +245,11 @@ void rtc_lld_set_alarm(uint32_t tv_alarm){
while(!(RTC->CRL & RTC_CRL_RTOFF)) /* wait for completion */
;
+
+#if !(RTC_SUPPORTS_CALLBACKS)
+ RTC->CRL &= ~RTC_CRL_ALRF;
+ RTC->CRH |= RTC_CRH_ALRIE;
+#endif /* !(RTC_SUPPORTS_CALLBACKS) */
}
/**