Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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(). Anchor10069931006993

Arguments

Anchor10069941006994p_tcb Anchor10069951006995

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.

Anchor10069961006996p_err Anchor10069971006997

is a pointer to a variable that contains an error code returned by this function.

...

classWebWorks_Indent_1

...

OS_ERR_NONE

...

classWebWorks_Indent_2

...

if the call was successful and the task was resumed.

...

classWebWorks_Indent_1

...

...

OS_ERR_STATE_INVALID

...

...

classWebWorks_Indent_2

...

if the task is in an invalid state.

...

...

OS_ERR_TIME_DLY_RESUME_ISR

...

...

classWebWorks_Indent_2

...

if OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if calling this function from an ISR.

...

...

OS_ERR_TIME_NOT_DLY

...

classWebWorks_Indent_2

...

...

if OS_CFG_ARG_CHK_EN is set to 1 in os_cfg.h: if the task was not delayed or, you passed a NULL pointer for the TCB.

...

classWebWorks_Indent_1

...

OS_ERR_TASK_SUSPENDED

...

classWebWorks_Indent_2

...

if the task to resume is suspended and will remain suspended.

...

Returned Value

...

10070091007009None Anchor10070101007010

Notes/Warnings

...

1007011Do not call this function to resume a task that is waiting for an event with timeout. Anchor10070521007052

Example

...

rowspan12

...