From bb2b6adb7ec29da41c346e1f10bc05f24d79b0ca Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 24 Sep 2020 11:52:56 +0200 Subject: [PATCH] sys/evtimer: copy warning from xtimer Callbacks from evtimer are still executed in interrupt context. While xtimer warns about this, evtimer leaves the user unsuspecting. Copy the warning from xtimer to keep users vigilant. --- sys/include/evtimer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/evtimer.h b/sys/include/evtimer.h index f4d7580350..60ce0730fe 100644 --- a/sys/include/evtimer.h +++ b/sys/include/evtimer.h @@ -78,6 +78,10 @@ typedef struct { /** * @brief Initializes an event timer * + * @warning BEWARE! Callbacks from evtimer_init() are being executed + * in interrupt context. + * DON'T USE THIS FUNCTION unless you know *exactly* what that means. + * * @param[in] evtimer An event timer * @param[in] handler An event handler function */