[riot-notifications] [RIOT-OS/RIOT] Timer gets disabled after interrupt (#11526)
notifications at github.com
Wed May 15 09:24:09 CEST 2019
> > I am not sure, if this is a bug, or intentional feature, but on timer interrupt the bellow line would disable any future interrupts
> That is intentional. The file is part of the periph/timer implementation, which allows only one active timer at a time (it is a slim abstraction of hardware timers).
> The corresponding `timer_set_absolute()` enables the interrupt, e.g. here:
> If the timer enable flag wouldn't be disabled, the same callback would be re-executed every time the timer has overflowed and counted back up to the compare value.
Wouldn't the correct approach for doing that include enabling one-shop operation?
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