CMSIS-RTOS2
Version 2.1.3
Real-Time Operating System: API and RTX Reference Implementation
|
Constants used by Thread Flags and Event Flags to return error codes. More...
Macros | |
#define | osFlagsErrorUnknown 0xFFFFFFFFU |
osError (-1). More... | |
#define | osFlagsErrorTimeout 0xFFFFFFFEU |
osErrorTimeout (-2). More... | |
#define | osFlagsErrorResource 0xFFFFFFFDU |
osErrorResource (-3). More... | |
#define | osFlagsErrorParameter 0xFFFFFFFCU |
osErrorParameter (-4). More... | |
#define | osFlagsErrorISR 0xFFFFFFFAU |
osErrorISR (-6). More... | |
In case of an error, flags functions (Thread Flags and Event Flags) return error codes. To indicate that an error has occurred, the highest bit of the return value is be set. You can check the exact error using the codes shown below.
#define osFlagsErrorUnknown 0xFFFFFFFFU |
Generic error. It is returned when no other error can be applied.
Reference:
#define osFlagsErrorTimeout 0xFFFFFFFEU |
This error is returned if a timeout was specified and the specified flags were not set, when the timeout occurred.
Reference:
#define osFlagsErrorResource 0xFFFFFFFDU |
This error is returned when you try to get a flag that was not set and timeout 0 was specified. Is also returned when the specified object identifier is corrupt or invalid.
Reference:
#define osFlagsErrorParameter 0xFFFFFFFCU |
This error is returned when a given parameter is wrong.
Reference:
#define osFlagsErrorISR 0xFFFFFFFAU |
This error is returned when a non-ISR-callable function was called from an ISR.
Reference: