mirror of
https://github.com/joeycastillo/gossamer.git
synced 2025-10-29 11:10:59 +00:00
rtc: clear interrupt flags if a callback function can't
This commit is contained in:
parent
3b18ccb1f4
commit
e289f52960
@ -119,5 +119,7 @@ void irq_handler_rtc(void);
|
||||
void irq_handler_rtc(void) {
|
||||
if (_rtc_callback != NULL) {
|
||||
_rtc_callback(RTC->MODE2.INTFLAG.reg);
|
||||
} else {
|
||||
RTC->MODE2.INTFLAG.reg = RTC_MODE2_INTFLAG_MASK;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user