[riot-notifications] [RIOT-OS/RIOT] sam0_common: make RTC implementation common across all sam0 MCUs (#11317)
notifications at github.com
Fri Apr 12 12:21:12 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);
+ /* DISABLE RTC MASTER */
Ok, I've changed the call order and made the RTC persist across reboots.
I might as well remove `rtc_reset()` then as it's currently unused.
Only tested on the samr21 as I don't have a saml21.
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