[riot-notifications] [RIOT-OS/RIOT] cpu/nrf5x: implement periph_timer_periodic (#15529)
chrysn
notifications at github.com
Mon Nov 30 18:24:32 CET 2020
@chrysn commented on this pull request.
> @@ -106,6 +107,30 @@ int timer_set_absolute(tim_t tim, int chan, unsigned int value)
return 0;
}
+int timer_set_periodic(tim_t tim, int chan, unsigned int value, uint8_t flags)
+{
+ /* see if channel is valid */
+ if (chan >= timer_config[tim].channels) {
+ return -1;
+ }
+
+ ctx[tim].flags |= (1 << chan);
+ ctx[tim].is_periodic |= (1 << chan);
+ dev(tim)->CC[chan] = value;
+ (void)flags;
Thanks, that was a leftover from experimentation.
--
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/15529#discussion_r532768286
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201130/8711d393/attachment-0001.htm>
More information about the notifications
mailing list