[riot-notifications] [RIOT-OS/RIOT] sys/event/timeout: add option to use ztimer as backend (#16505)

Francisco notifications at github.com
Thu May 27 22:36:25 CEST 2021

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

This PR adds an option to use ztimer as the backend for an `event/timeout`. To keep the API compatible I added a `ztimer_clock_t` field to the `event_timeout_t` type. But this could also be passed in the function signature and maybe have static inlines to implement the current API.

### Testing procedure

- `USEMODULE+=event_timeout_ztimer make -C flash teset`

### Issues/PRs references

Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.

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


-- Commit Summary --

  * sys/event/timeout: add option to use ztimer as backend

-- File Changes --

    M makefiles/pseudomodules.inc.mk (1)
    M sys/Makefile.dep (10)
    M sys/event/timeout.c (34)
    M sys/include/event/timeout.h (32)
    M tests/events/main.c (13)

-- Patch Links --


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/20210527/62913af9/attachment.htm>

More information about the notifications mailing list