[riot-notifications] [RIOT-OS/RIOT] cpu/samd5x: RTC: add timeout to spurious tamper event (#15556)

Marian Buschsieweke 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:
https://github.com/RIOT-OS/RIOT/pull/15556#discussion_r555908326
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210112/a25a48f7/attachment.htm>


More information about the notifications mailing list