<< Previous | Next >> | |
|
INT8U OSTimeDlyHMSM( INT8U hours, INT8U minutes, INT8U seconds, INT16U milli );
Description
- Delays execution of the task until specified amount of time expires. This call allows the delay to be specified in hours, minutes, seconds and milliseconds instead of ticks. The resolution on the milliseconds depends on the tick rate. For example, a 10 ms delay is not possible if the ticker interrupts every 100 ms. In this case, the delay would be set to 0. The actual delay is rounded to the nearest tick.
Parameters
- hours
- Number of hours that the task will be delayed (max. is 255)
- minutes
- Number of minutes (max. 59)
- seconds
- Number of seconds (max. 59)
- milli
- Number of milliseconds (max. 999)
Return value
- OS_NO_ERR
- Execution delay of task was successful
- OS_TIME_INVALID_MINUTES
- Minutes parameter out of range
- OS_TIME_INVALID_SECONDS
- Seconds parameter out of range
- OS_TIME_INVALID_MS
- Milliseconds parameter out of range
- OS_TIME_ZERO_DLY
Library
- OS_TIME.C (Prior to DC 8:ucos2.lib)
See also
- OSTimeDly, OSTimeDlyResume, OSTimeDlySec
Dynamic C Functions | << Previous | Next >> | rabbit.com |