diff --git a/core/include/thread_flags.h b/core/include/thread_flags.h index 846fcb64e4f8..096b5f78dff0 100644 --- a/core/include/thread_flags.h +++ b/core/include/thread_flags.h @@ -95,6 +95,7 @@ extern "C" { * } */ #define THREAD_FLAG_MSG_WAITING (1u << 15) + /** * @brief Set by @ref xtimer_set_timeout_flag() when the timer expires * @@ -102,6 +103,13 @@ extern "C" { */ #define THREAD_FLAG_TIMEOUT (1u << 14) +/** + * @brief Thread flag use to notify available events in an event queue + * + * This flag is used by the `event` module. + */ +#define THREAD_FLAG_EVENT (1u << 13) + /** * @brief Comprehensive set of all predefined flags * @@ -113,7 +121,12 @@ extern "C" { * When using custom flags, asserting that they are not in this set can help * avoid conflict with future additions to the predefined flags. */ -#define THREAD_FLAG_PREDEFINED_MASK (THREAD_FLAG_MSG_WAITING | THREAD_FLAG_TIMEOUT) +#define THREAD_FLAG_PREDEFINED_MASK (\ + THREAD_FLAG_EVENT |\ + THREAD_FLAG_MSG_WAITING |\ + THREAD_FLAG_TIMEOUT\ + ) + /** @} */ /** diff --git a/sys/include/event.h b/sys/include/event.h index 02543ceeb986..068161fd0ecf 100644 --- a/sys/include/event.h +++ b/sys/include/event.h @@ -115,13 +115,6 @@ extern "C" { #endif -#ifndef THREAD_FLAG_EVENT -/** - * @brief Thread flag use to notify available events in an event queue - */ -#define THREAD_FLAG_EVENT (0x1) -#endif - /** * @brief event_queue_t static initializer */