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 ...