[riot-notifications] [RIOT-OS/RIOT] sam0_common: make RTC implementation common across all sam0 MCUs (#11317)

Dylan Laduranty notifications at github.com
Thu Apr 11 22:08:57 CEST 2019

dylad commented on this pull request.

-    /* Software Reset the RTC */
-    RTC->MODE2.CTRLA.bit.SWRST = 1;
-    /* Wait end of reset */
-    while (RTC->MODE2.CTRLA.bit.SWRST);
+void rtc_init(void)
+    rtc_poweroff();
+    rtc_clock_setup();

Please call `rtc_clock_setup();` before `rtc_poweroff();`
SAML10-XPRO get stuck within `rtc_poweroff();` which is a normal behavior since we're waiting for a bit but the IP is not clocked.
Strangely, it works so far for SAMD21, SAML21 and SAML11. Atmel black magic ?

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190411/063f9b90/attachment-0001.html>

More information about the notifications mailing list