RTC. Small code improvements.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3276 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
barthess 2011-08-31 17:49:18 +00:00
parent 5e62285d17
commit 7194b7a7fe
1 changed files with 5 additions and 0 deletions

View File

@ -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) */
}
/**