1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

cpu/sam0_common/periph: fix rtt reset after hibernation

This commit is contained in:
mariemC 2024-08-28 18:22:24 +02:00
parent d469e6d978
commit 7df7886a69

View File

@ -407,6 +407,7 @@ void rtt_init(void)
_read_gp(backup);
#endif
if (!cpu_woke_from_backup()) {
_rtt_reset();
#ifdef MODULE_PERIPH_RTC_MEM
@ -430,6 +431,7 @@ void rtt_init(void)
| RTC_MODE0_PRESCALER;
#endif
_wait_syncbusy();
}
/* initially clear flag */
RTC->MODE0.INTFLAG.reg = RTC_MODE0_INTFLAG_CMP0