[riot-notifications] [RIOT-OS/RIOT] periph/timer: add timer_set_periodic() (#13902)

benpicco notifications at github.com
Tue May 12 11:22:47 CEST 2020


> if I understand correctly without the `TIM_FLAG_RESET_ON_MATCH` then only the first interrupt will happen after the desired time, all subsequent ISR will be after a full timer cycle right?

Yes, I didn't want to enforce that you could only use the first channel in this mode.

One could imagine setting `TIM_FLAG_RESET_ON_MATCH` on channel 1 and then using channel 0 as a half-way interrupt.

> maybe should be documented is that this would conflict with the operation of a high level timer interface right?

Yea this assumes there is only one user of the timer - but you shouldn't mess with the hardware timer used by e.g. xtimer either.



-- 
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/13902#issuecomment-627221808
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/f4c0869f/attachment.htm>


More information about the notifications mailing list