1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

34 Commits

Author SHA1 Message Date
Teufelchen
b376bec667
Merge pull request #20847 from benpicco/event_assert
sys/event: add assertion that event has a handler
2024-10-25 08:11:51 +00:00
Fabian Hüßler
90473c62f0 sys/event: add event_periodic_start_now() 2024-10-14 21:17:38 +02:00
Benjamin Valentin
6177380762 event_periodic_callback: add assertion that event has a handler 2024-08-29 17:20:16 +02:00
Benjamin Valentin
10f28b873e sys/event_callback: add event_callback_post() 2024-08-29 17:19:43 +02:00
benpicco
3f41494e59
Merge pull request #20266 from benpicco/nanocoap_reply_separate
nanocoap_sock: implement separate response
2024-05-21 17:45:22 +00:00
Benjamin Valentin
52350852cc sys/event/timeout: uninitialized event is not pending 2024-05-21 19:25:55 +02:00
Benjamin Valentin
2bef44bd6b event_periodic_callback: fix typo 2024-03-12 18:35:42 +01:00
Benjamin Valentin
6f604a8137 event_periodic_callback: add event_periodic_callback_create() 2024-03-12 11:06:37 +01:00
Benjamin Valentin
7cbf516e3b event_periodic_callback: add getter for interval & count 2024-02-01 17:11:37 +01:00
Benjamin Valentin
7a66f1cc42 sys/event/timeout: add event_timeout_is_pending() 2023-10-11 22:02:08 +02:00
558d7dd8f2
makefiles/pseudomodules: remove deprecated event_thread_lowest module 2023-05-19 16:15:10 +02:00
Benjamin Valentin
49646e1dc3 sys/event: add event sources
This adds an event bus where multiple events can be triggered at once.
2023-01-19 13:05:15 +01:00
Martine Lenders
bb92b2b281
doc: add deprecation notice on deprecated pseudo-modules 2022-10-06 10:53:10 +02:00
Benjamin Valentin
6563ce2fb7 event_callback: add event_callback_oneshot() 2022-09-27 15:45:19 +02:00
Benjamin Valentin
e20b966109 event_periodic_callback: add getter for user context 2022-09-27 13:15:26 +02:00
Martine Lenders
0079b0c52f
event_periodic_callback: remove unnecessary dependency 2022-09-20 09:49:30 +02:00
Benjamin Valentin
00c11c3f9d event_periodic_callback: add convenience wrapper for periodic callbacks 2022-09-15 18:36:41 +02:00
Francisco Molina
b4a70fc29c sys/event/timeout: remove alternative xtimer implementation
The old event_timeout API is no soley implemented on top of ztimer_usec.
2022-02-23 12:14:30 +01:00
Francisco Molina
7d084a43ff sys/include/event/periodic: add count 2021-12-07 19:42:32 +01:00
Francisco Molina
81c5d5dbcc sys/event/timeout: split xtimer, ztimer backends, don't force usec
This PR makes `event_timeout` and `event_timeout_ztimer` two distinct
pseudomodules, where the only api difference is in the init function.

If only `event_timeout_ztimer` is selected then no default ZTIMER
backend is selected and the old init function is not implemented.

If only `event_timeout` is selected then `xtimer` is used unless
`ztimer_usec` is included. In which case the `xtimer` wrapper on top
of `ztimer` is used and `xtimer` is not directly selected. This
allows for the legacy api to be supported with `ztimer_usec` as
a drop-in replacement.

If `event_timeout` and `event_timeut_ztimer` are selected then
`event_timeout` SRC file is excluded from compilation.
2021-11-17 10:15:11 +01:00
Martine Lenders
bf99bcc8d2
event/timeout.h: fix typos in doc 2021-07-21 12:25:05 +02:00
Francisco Molina
b0396eec5a
sys/include/event/timeout: add missing DOXYGEN
Fix styling
2021-06-03 17:54:26 +02:00
Francisco Molina
4ddbac3be3
sys/event: add periodic event 2021-06-03 17:53:44 +02:00
Francisco Molina
4f34e50130
sys/event/timeout: add option to use ztimer as backend 2021-05-27 22:34:01 +02:00
Marian Buschsieweke
c6211cc6c2
sys/event: Allow shared thread for multiple queues
Allow using `event_loop_multi()` to handle event queues of multiple priorities
in an single thread. In the extreme case, all three event queues are handled
by a single thread (thus saving two stacks). This comes for the price of
increased worst case latency, as already running event handlers will no longer
be preempted by higher priority events.

With this, all three event queue priorities are always provided. Using modules,
the old behavior of one thread per event queue can be restored for better worst
case latency at the expense of additional thread size.
2020-12-03 15:28:35 +01:00
e01ad86eb3 sys/event: add shared event threads 2020-02-07 12:17:56 +01:00
61db4d9724 sys/include: fix typos 2019-11-23 22:39:37 +01:00
0ec9c57b2b add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
Martine Lenders
756edfd7a5
Merge pull request #8565 from bergzand/pr/event/doc/fix-timeout-unit
event: fix additional unit in doc for event_timeout_set()
2018-02-14 21:08:29 +01:00
266ba4b968
event: fix additional unit in doc for event_timeout_set() 2018-02-14 20:21:41 +01:00
Martine Lenders
519c4f3bdd event: fix unit in doc for event_timeout_set() 2018-02-14 18:37:57 +01:00
Hauke Petersen
cef3d307c7 sys/event/timeout: fixed typos and line lengths 2018-01-09 15:21:40 +01:00
Hauke Petersen
03dccb568d sys/event/timeout: add timeout_clear() function 2018-01-09 15:21:29 +01:00
0e09213e53 sys/event: initial commit of handler-based event system 2017-11-06 14:19:31 +01:00