![]() |
CMSIS-RTOS
Version 1.02
CMSIS-RTOS API: Generic RTOS interface for Cortex-M processor-based devices.
|
Wait for a time period or unspecified events. More...
Macros | |
#define | osFeature_Wait 1 |
osWait function: 1=available, 0=not available More... | |
Functions | |
osStatus | osDelay (uint32_t millisec) |
Wait for Timeout (Time Delay). More... | |
osEvent | osWait (uint32_t millisec) |
Wait for Signal, Message, Mail, or Timeout. More... | |
The Generic Wait function group provides means for a time delay and allow to wait for unspecified events.
#define osFeature_Wait 1 |
A CMSIS-RTOS implementation may support the generic wait function osWait.
osStatus osDelay | ( | uint32_t | millisec | ) |
[in] | millisec | time delay value |
Wait for a specified time period in millisec.
Example
osEvent osWait | ( | uint32_t | millisec | ) |
[in] | millisec | timeout value or 0 in case of no time-out |
Wait for any event of the type Signal, Message, Mail for a specified time period in millisec. While the system waits the thread that is calling this function is put into the state WAITING. When millisec is set to osWaitForever the function will wait for an infinite time until a event occurs.
The osWait function puts a thread into the state WAITING and waits for any of the following events:
Example