summaryrefslogtreecommitdiff
path: root/stmhal/stm32f4xx_it.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/stm32f4xx_it.c')
-rw-r--r--stmhal/stm32f4xx_it.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/stm32f4xx_it.c b/stmhal/stm32f4xx_it.c
index f06c4081c..9be180a05 100644
--- a/stmhal/stm32f4xx_it.c
+++ b/stmhal/stm32f4xx_it.c
@@ -341,7 +341,8 @@ void TAMP_STAMP_IRQHandler(void) {
}
void RTC_WKUP_IRQHandler(void) {
- Handle_EXTI_Irq(EXTI_RTC_WAKEUP);
+ RTC->ISR &= ~(1 << 10); // clear wakeup interrupt flag
+ Handle_EXTI_Irq(EXTI_RTC_WAKEUP); // clear EXTI flag and execute optional callback
}
void TIM1_BRK_TIM9_IRQHandler(void) {