1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 05:53:49 +01:00

tests/event_periodic_callback: add one-shot test

This commit is contained in:
Benjamin Valentin 2022-09-27 15:46:59 +02:00
parent 6563ce2fb7
commit b2edca1611
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,9 @@ int main(void)
{
event_periodic_callback_t a, b, c;
event_callback_t oneshot;
event_callback_oneshot(&oneshot, EVENT_PRIO_MEDIUM, _event_cb, "event 0");
event_periodic_callback_init(&a, ZTIMER_MSEC, EVENT_PRIO_MEDIUM, _event_cb, "event A");
event_periodic_callback_init(&b, ZTIMER_MSEC, EVENT_PRIO_MEDIUM, _event_cb, "event B");
event_periodic_callback_init(&c, ZTIMER_MSEC, EVENT_PRIO_MEDIUM, _event_cb, "event C");

View File

@ -5,6 +5,7 @@ from testrunner import run
def testfunc(child):
child.expect_exact("event 0")
child.expect_exact("event A")
child.expect_exact("event B")
child.expect_exact("event A")