[riot-notifications] [RIOT-OS/RIOT] cpu/samd5x: RTC: add timeout to spurious tamper event (#15556)
notifications at github.com
Tue Jan 12 17:32:27 CET 2021
@maribu commented on this pull request.
- /* enable tamper detect as wake-up source */
- RTC->MODE0.INTENSET.bit.TAMPER = 1;
+ /* If an RTC alarm happened before, the spurious tamper
+ * event is sometimes generated.
+ * Tamper event must happen within one RTC clock period. */
+ unsigned timeout = CLOCK_CORECLOCK / 32768;
Better safe than sorry.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications