[riot-notifications] [RIOT-OS/RIOT] sys/event: add event_wait_timeout_ztimer() (#15789)
notifications at github.com
Mon Jan 18 17:48:07 CET 2021
### Contribution description
If one wants to use the timeout functionality with the `event` module, it is so far tied to `xtimer`. This PR also adds support to use `ztimer` for the same purpose, by introducing a new function called `event_wait_timeout_ztimer()`. This function allows to specify the used ztimer clock, and hence it can be used for any fitting time scale and no 64-bit version of that function is needed.
I'd like to have this function merged to proceed on my path to remove any `xtimer` and `periph_timer` dependencies from NimBLE...
### Testing procedure
Run the `tests/event_wait_timeout` test on any platform of your choosing. It should still succeed.
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* sys/event: add event_wait_timeout_ztimer()
* tests/event_wait_timeout: include ztimer timeout
-- File Changes --
M sys/event/event.c (41)
M sys/include/event.h (25)
M tests/event_wait_timeout/Makefile (1)
M tests/event_wait_timeout/main.c (15)
-- 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...
More information about the notifications