OSTimeDlyResume()
void OSTimeDlyResume (OS_TCB *p_tcb,
OS_ERR *p_err)
File |
Called from |
Code enabled by |
os_time.c |
Task only |
OS_CFG_TIME_DLY_RESUME_EN |
OSTimeDlyResume() resumes a task that has been delayed through a call to either OSTimeDly(), or OSTimeDlyHMSM().
Arguments
p_tcb
is a pointer to the TCB of the task that is resuming. A NULL pointer is not valid since it would indicate that the user is attempting to resume the current task and that is not possible as the caller cannot possibly be delayed.
p_err
is a pointer to a variable that contains an error code returned by this function.
Returned Value
None
Notes/Warnings
Do not call this function to resume a task that is waiting for an event with timeout.
Example
OS_TCB AnotherTaskTCB;
void TaskX (void *p_arg) { OS_ERR err;
while (DEF_ON) { : OSTimeDlyResume(&AnotherTaskTCB, &err); /* Check “err” */ : } } |