osThreadFlagsClear() function
Clear the specified Thread Flags of current running thread.
Syntax
uint32_t osThreadFlagsClear (uint32_t flags); Arguments
flags
specifies the flags of the thread that shall be cleared.
Return value
thread flags before clearing or error code if highest bit set.