We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb5fd2 commit e136cbdCopy full SHA for e136cbd
ports/atmel-samd/supervisor/port.c
@@ -194,6 +194,8 @@ static void rtc_init(void) {
194
#endif
195
#ifdef SAM_D5X_E5X
196
hri_mclk_set_APBAMASK_RTC_bit(MCLK);
197
+ // Cache TAMPID?
198
+ (void)alarm_get_wakeup_cause();
199
RTC->MODE0.CTRLA.bit.SWRST = true;
200
while (RTC->MODE0.SYNCBUSY.bit.SWRST != 0) {
201
}
@@ -493,7 +495,7 @@ void RTC_Handler(void) {
493
495
494
496
if (intflag & RTC_MODE0_INTFLAG_CMP1) {
497
// Likely TimeAlarm fake sleep wake
- timer_callback();
498
+ time_alarm_callback();
499
RTC->MODE0.INTFLAG.reg = RTC_MODE0_INTFLAG_CMP1;
500
501
if (intflag & RTC_MODE0_INTFLAG_TAMPER) {
0 commit comments