[riot-notifications] [RIOT-OS/RIOT] sys/event: add periodic timeout event (#16507)

Francisco notifications at github.com
Fri May 28 11:34:09 CEST 2021


### Contribution description

This PR adds a periodic timeout event using `ztimer`. Useful to scheduler a task that should be periodically executed, e.g.: reading some sensor.

### Testing procedure

`make -C tests/event_timeout_ztimer`

### Issues/PRs references

depend on #16505 

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16507

-- Commit Summary --

  * sys/event/timeout: add option to use ztimer as backend
  * sys/event: add periodic timeout event
  * tests/event_timeout_ztimer: initial commit

-- File Changes --

    M makefiles/pseudomodules.inc.mk (1)
    M sys/Makefile.dep (15)
    A sys/event/periodic_timeout.c (30)
    M sys/event/timeout.c (34)
    M sys/include/event/timeout.h (95)
    A tests/event_timeout_ztimer/Makefile (9)
    A tests/event_timeout_ztimer/Makefile.ci (9)
    A tests/event_timeout_ztimer/main.c (124)
    A tests/event_timeout_ztimer/tests/01-run.py (19)
    M tests/events/main.c (13)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16507.patch
https://github.com/RIOT-OS/RIOT/pull/16507.diff

-- 
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/16507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210528/601905ad/attachment.htm>


More information about the notifications mailing list