[riot-notifications] [RIOT-OS/RIOT] xtimer: xtimer_now() not ISR safe (#5338)

Gaƫtan Harter notifications at github.com
Tue Jun 18 19:48:56 CEST 2019

> Another solution I imagine, would be to save the previous last time that was read and adjust the time returned by `xtimer_now` and `xtimer_now64` to be sure it is not in the past. It should be updated once per period at least by the xtimer interrupt so would be detectable.

Hmm, would not work as we are tickless. I was thinking it would be read sometime anyway, but you could spend the whole cycle and have masked interrupt just at the time of the overflow. So forcing an interrupt in the middle would be the similar to ticking twice per cycle.

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/20190618/1643874b/attachment.html>

More information about the notifications mailing list