aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-12 13:19:21 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-12 13:19:21 +0000
commit82ee230c4540cfa76a9f8614955823a02091a939 (patch)
tree02326d4c4a45d3d3fc3df646d1cdd31c6f0857fb /os/hal/platforms
parentdd834361e8d805cf5ecf89bcdc15b08f60268e76 (diff)
downloadChibiOS-82ee230c4540cfa76a9f8614955823a02091a939.tar.gz
ChibiOS-82ee230c4540cfa76a9f8614955823a02091a939.tar.bz2
ChibiOS-82ee230c4540cfa76a9f8614955823a02091a939.zip
RTCv1 minor fix
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3604 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/RTCv1/rtc_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.c b/os/hal/platforms/STM32/RTCv1/rtc_lld.c
index e6088c342..2e95bc446 100644
--- a/os/hal/platforms/STM32/RTCv1/rtc_lld.c
+++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.c
@@ -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 {