![]() |
CMSIS-RTOS2
Version 2.0.0
Real-Time Operating System: API and RTX Reference Implementation
|
Wait for a time period or unspecified events. More...
Functions | |
osStatus_t | osDelay (uint32_t ticks) |
Wait for Timeout (Time Delay). More... | |
osStatus_t | osDelayUntil (uint64_t ticks) |
Wait until specified time. More... | |
The Generic Wait function group provides means for a time delay.
osStatus_t osDelay | ( | uint32_t | ticks | ) |
[in] | ticks | time ticks value |
Wait for a specified time period in kernel ticks.
The timeout value represents a number of timer ticks and is an upper bound. The exact time delay depends on the actual time elapsed since the last timer tick.
For a value of 1, the system waits until the next timer tick occurs. That means that the actual time delay may be up to one timer tick less.
osStatus_t return values:
Code Example
osStatus_t osDelayUntil | ( | uint64_t | ticks | ) |
[in] | ticks | absolute time in ticks |
Wait until an absolute time - specified in kernel ticks - is reached.
The timeout value represents a number of timer ticks and is an upper bound. The exact time delay depends on the actual time elapsed since the last timer tick.
osKernelGetSysTimerCount can be used to retrieve the current elapsed time of the kernel in .
osStatus_t return values: