Versions Compared

Key

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

...

Include Page
css.uC-OS-III API Reference Manual.css
css.uC-OS-III API Reference Manual.css
Include Page
css.webworks.css
css.webworks.css

Anchor
1006975
1006975
OSTimeDlyResume()

Anchor
1006976
1006976
void OSTimeDlyResume (OS_TCB *p_tcb,

Anchor
1006977
1006977
OS_ERR *p_err)

Anchor
1006991
1006991
 

HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)

Anchor
1006980
1006980
File

Table Cell (td)

Anchor
1006982
1006982
Called from

Table Cell (td)

Anchor
1006984
1006984
Code enabled by

Table Row (tr)
Table Cell (td)

Anchor
1006986
1006986
os_time.c

Table Cell (td)

Anchor
1006988
1006988
Task only

Table Cell (td)

Anchor
1006990
1006990
OS_CFG_TIME_DLY_RESUME_EN

Anchor
1006992
1006992
OSTimeDlyResume() resumes a task that has been delayed through a call to either OSTimeDly(), or OSTimeDlyHMSM().

Anchor
1006993
1006993
Arguments

Anchor
1006994
1006994
p_tcb

Anchor
1006995
1006995
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.

Anchor
1006996
1006996
p_err

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

Div
classWebWorks_Indent_1
Anchor
1006998
1006998
OS_ERR_NONE
Div
classWebWorks_Indent_2
Anchor
1006999
1006999
if the call was successful and the task was resumed.
Div
classWebWorks_Indent_1
Anchor
1007000
1007000
OS_ERR_STATE_INVALID
Div
classWebWorks_Indent_2
Anchor
1007001
1007001
if the task is in an invalid state.
Div
classWebWorks_Indent_1
Anchor
1007002
1007002
OS_ERR_TIME_DLY_RESUME_ISR
Div
classWebWorks_Indent_2
Anchor
1007003
1007003
if OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if calling this function from an ISR.
Div
classWebWorks_Indent_1
Anchor
1007004
1007004
OS_ERR_TIME_NOT_DLY
Div
classWebWorks_Indent_2
Anchor
1007005
1007005
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.
Div
classWebWorks_Indent_1
Anchor
1007006
1007006
OS_ERR_TASK_SUSPENDED
Div
classWebWorks_Indent_2
Anchor
1007007
1007007
if the task to resume is suspended and will remain suspended.

Anchor
1007008
1007008
Returned Value

Anchor
1007009
1007009
None

Anchor
1007010
1007010
Notes/Warnings

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

Anchor
1007052
1007052
Example

Anchor
1069430
1069430
 

HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan12

Anchor
1007014
1007014
OS_TCB AnotherTaskTCB;

Anchor
1007015
1007015
 

Anchor
1007016
1007016
 

Anchor
1007017
1007017
void TaskX (void *p_arg)

Anchor
1007018
1007018
{

Anchor
1007019
1007019
OS_ERR err;

Anchor
1007020
1007020
 

Anchor
1007021
1007021
 

Anchor
1007022
1007022
while (DEF_ON) {

Anchor
1007023
1007023
:

Anchor
1007024
1007024
OSTimeDlyResume(&AnotherTaskTCB,

Anchor
1007025
1007025
&err);

Anchor
1007026
1007026
/* Check “err” */

Anchor
1007027
1007027
:

Anchor
1007028
1007028
}

Anchor
1007029
1007029
}

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)

Table Row (tr)