You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a macro THREAD_FLAG_PREDEFINED_MASK to capture thread flags in-use by RIOT to allow applications to avoid collisions when using flags. However, many flags are in-use inside of modules and are not captured in this macro. Worse, some flags even within RIOT are defined to the same value. All flag definitions should be moved to thread_flags.h and added to the THREAD_FLAG_PREDEFINED_MASK macro.
Flags to add to THREAD_FLAG_PREDEFINED_MASK (found with git grep THREAD_FLAG | grep "#define"):
Hum, any idea how we could convey the information that a flag is used only if the respective module is actually selected? Otherwise at some point we will end up having most if not all bits already in the predefined mask and the mask won't be useful anymore.
Description
There is a macro
THREAD_FLAG_PREDEFINED_MASK
to capture thread flags in-use by RIOT to allow applications to avoid collisions when using flags. However, many flags are in-use inside of modules and are not captured in this macro. Worse, some flags even within RIOT are defined to the same value. All flag definitions should be moved to thread_flags.h and added to theTHREAD_FLAG_PREDEFINED_MASK
macro.Flags to add to
THREAD_FLAG_PREDEFINED_MASK
(found withgit grep THREAD_FLAG | grep "#define"
):THREAD_FLAG_KINETIS_I2C
(1u << 8)KW41ZRF_THREAD_FLAG_ISR
(1u << 8)LVGL_THREAD_FLAG
(1 << 7)THREAD_FLAG_LWIP_TX_DONE
(1U << 11)THREAD_FLAG_EVENT
(0x1) - Move event thread flag #20868USBUS_THREAD_FLAG_USBDEV
(0x02) /**< usbdev esr needs handling */USBUS_THREAD_FLAG_USBDEV_EP
(0x04) /**< One or more endpoints requiresPOSIX_SELECT_THREAD_FLAG
(1U << 3)CST816S_THREAD_FLAG
(1 << 8)THREAD_FLAG_TX_END
(1U << 4)Versions
The text was updated successfully, but these errors were encountered: