<< Previous | Next >> | |
|
INT8U OSTimeDlyResume( INT8U prio );
Description
- Resumes a task that has been delayed through a call to either
OSTimeDly()
orOSTimeDlyHMSM()
. Note that this function MUST NOT be called to resume a task that is waiting for an event with timeout. This situation would make the task look like a timeout occurred (unless this is the desired effect). Also, a task cannot be resumed that has calledOSTimeDlyHMSM()
with a combined time that exceeds 65535 clock ticks. In other words, if the clock tick runs at 100 Hz then, a delayed task will not be able to be resumed that calledOSTimeDlyHMSM(0, 10, 55, 350)
or higher.Parameters
- prio
- Priority of the task to resume.
Return value
- OS_NO_ERR
- Task has been resumed.
- OS_PRIO_INVALID
- The priority you specify is higher than the maximum allowed (i.e. ≥
OS_LOWEST_PRIO
).
- OS_TIME_NOT_DLY
- Task is not waiting for time to expire.
- OS_TASK_NOT_EXIST
- The desired task has not been created.
Library
- UCOS2.LIB
See also
- OSTimeDly, OSTimeDlyHMSM, OSTimeDlySec
Dynamic C Functions | << Previous | Next >> | rabbit.com |