RTCv1 minor fix

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3604 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-12-12 13:19:21 +00:00
parent dd834361e8
commit 82ee230c45
1 changed files with 1 additions and 1 deletions

View File

@ -313,8 +313,8 @@ void rtc_lld_set_callback(RTCDriver *rtcp, RTCCallbackConfig *cb_cfg) {
the IRQ handler.*/
rtc_lld_wait_write();
RTC->CRL &= ~(RTC_CRL_OWF | RTC_CRL_ALRF | RTC_CRL_SECF);
NVICEnableVector(RTC_IRQn, CORTEX_PRIORITY_MASK(STM32_RTC_IRQ_PRIORITY));
rtc_lld_wait_write();
NVICEnableVector(RTC_IRQn, CORTEX_PRIORITY_MASK(STM32_RTC_IRQ_PRIORITY));
RTC->CRH |= RTC_CRH_OWIE | RTC_CRH_ALRIE | RTC_CRH_SECIE;
}
else {