- `osEventFlagsWait`用于等待事件标志的发生。在此示例中,它等待事件标志组`event_flags_id`的`0x01`标志被设置,等待方式为`osFlagsWaitAny`,表示等待任意一个指定的标志位被设置。 - `osWaitForever`表示在没有设置事件标志的情况下一直等待下去,直到事件标志被设置。 - `osEventFlagsSet`用于设置事件标志。在...
For "osEventFlagsWait" and "osThreadFlagsWait", the flags and error code all feedback to the user through 'return' value. The MSB bit of 32-bits integer indicate an error condition, it means there is only 31 bits usable. This is not so convenient in some situations. Sometimes I need ...