Skip to content

Commit e136cbd

Browse files
committed
forgot to commit port.c
1 parent dcb5fd2 commit e136cbd

File tree

1 file changed

+3
-1
lines changed
  • ports/atmel-samd/supervisor

1 file changed

+3
-1
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ static void rtc_init(void) {
194194
#endif
195195
#ifdef SAM_D5X_E5X
196196
hri_mclk_set_APBAMASK_RTC_bit(MCLK);
197+
// Cache TAMPID?
198+
(void)alarm_get_wakeup_cause();
197199
RTC->MODE0.CTRLA.bit.SWRST = true;
198200
while (RTC->MODE0.SYNCBUSY.bit.SWRST != 0) {
199201
}
@@ -493,7 +495,7 @@ void RTC_Handler(void) {
493495
}
494496
if (intflag & RTC_MODE0_INTFLAG_CMP1) {
495497
// Likely TimeAlarm fake sleep wake
496-
timer_callback();
498+
time_alarm_callback();
497499
RTC->MODE0.INTFLAG.reg = RTC_MODE0_INTFLAG_CMP1;
498500
}
499501
if (intflag & RTC_MODE0_INTFLAG_TAMPER) {

0 commit comments

Comments
 (0)