Missing EXTI IRQ clearing in ISRs.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12435 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
e7cea845fe
commit
118309d74b
|
@ -250,6 +250,10 @@ OSAL_IRQ_HANDLER(STM32_RTC_COMMON_HANDLER) {
|
||||||
isr = RTCD1.rtc->ISR;
|
isr = RTCD1.rtc->ISR;
|
||||||
RTCD1.rtc->ISR = 0U;
|
RTCD1.rtc->ISR = 0U;
|
||||||
|
|
||||||
|
extiClearGroup1(EXTI_MASK1(STM32_RTC_ALARM_EXTI) |
|
||||||
|
EXTI_MASK1(STM32_RTC_TAMP_STAMP_EXTI) |
|
||||||
|
EXTI_MASK1(STM32_RTC_WKUP_EXTI));
|
||||||
|
|
||||||
if (RTCD1.callback != NULL) {
|
if (RTCD1.callback != NULL) {
|
||||||
uint32_t cr = RTCD1-rtc->CR;
|
uint32_t cr = RTCD1-rtc->CR;
|
||||||
uint32_t tampcr = RTCD1.rtc->TAMPCR;
|
uint32_t tampcr = RTCD1.rtc->TAMPCR;
|
||||||
|
@ -332,6 +336,8 @@ OSAL_IRQ_HANDLER(STM32_RTC_TAMP_STAMP_HANDLER) {
|
||||||
isr = RTCD1.rtc->ISR;
|
isr = RTCD1.rtc->ISR;
|
||||||
RTCD1.rtc->ISR = clear;
|
RTCD1.rtc->ISR = clear;
|
||||||
|
|
||||||
|
extiClearGroup1(EXTI_MASK1(STM32_RTC_TAMP_STAMP_EXTI));
|
||||||
|
|
||||||
if (RTCD1.callback != NULL) {
|
if (RTCD1.callback != NULL) {
|
||||||
uint32_t cr, tampcr;
|
uint32_t cr, tampcr;
|
||||||
|
|
||||||
|
@ -381,6 +387,8 @@ OSAL_IRQ_HANDLER(STM32_RTC_WKUP_HANDLER) {
|
||||||
isr = RTCD1.rtc->ISR;
|
isr = RTCD1.rtc->ISR;
|
||||||
RTCD1.rtc->ISR = ~RTC_ISR_WUTF;
|
RTCD1.rtc->ISR = ~RTC_ISR_WUTF;
|
||||||
|
|
||||||
|
extiClearGroup1(EXTI_MASK1(STM32_RTC_WKUP_EXTI));
|
||||||
|
|
||||||
if (RTCD1.callback != NULL) {
|
if (RTCD1.callback != NULL) {
|
||||||
uint32_t cr = RTCD1.rtc->CR;
|
uint32_t cr = RTCD1.rtc->CR;
|
||||||
|
|
||||||
|
@ -414,6 +422,8 @@ OSAL_IRQ_HANDLER(STM32_RTC_ALARM_HANDLER) {
|
||||||
isr = RTCD1.rtc->ISR;
|
isr = RTCD1.rtc->ISR;
|
||||||
RTCD1.rtc->ISR = clear;
|
RTCD1.rtc->ISR = clear;
|
||||||
|
|
||||||
|
extiClearGroup1(EXTI_MASK1(STM32_RTC_ALARM_EXTI));
|
||||||
|
|
||||||
if (RTCD1.callback != NULL) {
|
if (RTCD1.callback != NULL) {
|
||||||
uint32_t cr = RTCD1.rtc->CR;
|
uint32_t cr = RTCD1.rtc->CR;
|
||||||
#if defined(RTC_ISR_ALRAF)
|
#if defined(RTC_ISR_ALRAF)
|
||||||
|
|
Loading…
Reference in New Issue