osThreadFlagsWait() function
Wait for one or more Thread Flags of the current running thread to become signaled.
Arguments
flags
specifies the flags to wait for.
options
specifies flags options (osFlagsXxxx).
timeout
CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
Return value
thread flags before clearing or error code if highest bit set.