<p></p>
<p><b>@benpicco</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16682#discussion_r677740840">drivers/rtt_rtc/rtt_rtc.c</a>:</p>
<pre style='color:#555'>> @@ -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 */
</pre>
<p>I recon this is an opportunity to make use of <code>atomic_load_u32()</code> <g-emoji class="g-emoji" alias="wink" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f609.png">😉</g-emoji></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16682#discussion_r677740840">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYH5OMWBMGZXNP3V3P3TZ4CVZANCNFSM5BAIVSLA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYGJCNDVENXQPKNLEELTZ4CVZA5CNFSM5BAIVSLKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFKY6NCY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16682#discussion_r677740840",
"url": "https://github.com/RIOT-OS/RIOT/pull/16682#discussion_r677740840",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>