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

benpicco notifications at github.com
Fri Apr 12 13:04:13 CEST 2019

benpicco 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_poweron();

Well you mentioned it is necessary for the device to be powered for `rtc_clock_setup()` to work on saml10.

Nothing should have enabled the RTC before this function is called, so it would stall again.

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/20190412/823f42b4/attachment.html>

More information about the notifications mailing list