CMSIS-RTOS2
Version 2.1.0
Real-Time Operating System: API and RTX Reference Implementation
|
Wait for a certain period of time. 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 functions provide means for a time delay.
osStatus_t osDelay | ( | uint32_t | ticks | ) |
[in] | ticks | time ticks value |
The function osDelay waits for a time period specified in kernel ticks. 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.
Possible osStatus_t return values:
Code Example
osStatus_t osDelayUntil | ( | uint64_t | ticks | ) |
[in] | ticks | absolute time in ticks |
The function osDelayUntil waits until an absolute time (specified in kernel ticks) is reached.
Possible osStatus_t return values:
Code Example