[riot-notifications] [RIOT-OS/RIOT] rtt_rtc: add rtc_settimeofday() & rtc_gettimeofday() (#16682)

benpicco notifications at github.com
Tue Jul 27 21:32:44 CEST 2021


@benpicco commented on this pull request.



> @@ -50,7 +51,7 @@
 #define BACKUP_RAM      __attribute__((section(".noinit")))
 #endif
 
-static uint32_t rtc_now BACKUP_RAM;         /**< The RTC timestamp when the last RTT alarm triggered */
+static volatile uint32_t rtc_now BACKUP_RAM; /**< The RTC timestamp when the last RTT alarm triggered */

I recon this is an opportunity to make use of `atomic_load_u32()` :wink: 

-- 
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/16682#discussion_r677740840
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210727/aee6eb99/attachment-0001.htm>


More information about the notifications mailing list