BOOL osSleep( TIME Time );
The duration for which the task will be suspended.
Returns TRUE on success or FALSE on failure. Call the osGetLastError function to obtain extended error information.
This function suspends the execution of the current task for a specified duration.
The function can only be called from within a task context. When the time parameter is set to 0 (or OS_IGNORE), the task voluntarily yields its remaining time slice to another task. All other values specify a duration after which the task will be resumed. Values greater than zero may only be used when OS_USE_WAITING_WITH_TIME_OUT is set to 1. The duration is specified in system time units. For more information regarding time units, please refer to the system time description in the scheduling section.
| Version: | 1.0 |
|---|---|
| Header file: | OS_API.h |
| See also: | AR_TIME_IGNORE, BOOL, FALSE, osGetLastError, scheduling, TIME, TRUE |