mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:52:44 +01:00
sys/event: add event thread flag to THREAD_FLAG_PREDEFINED_MASK
This commit is contained in:
parent
76c90594c6
commit
d958512537
@ -103,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
|
||||
*
|
||||
@ -114,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\
|
||||
)
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user