...
Files
os.h/os_task.c
Prototype
Code Block |
---|
void OSTaskRegSet (OS_TCB *p_tcb,
OS_REG_ID id,
OS_REG value,
OS_ERR *p_err) |
Arguments
p_tcb
is a pointer to the TCB of the task you are setting. A NULL
pointer indicates that the user wants to set the value of a task register of the calling task.
...
Notes/Warnings
None
Example Usage
Code Block | ||
---|---|---|
| ||
OS_TCB MyTaskTCB;
void TaskX (void *p_arg)
{
OS_ERR err;
while (DEF_ON) {
:
OSTaskRegSet(&MyTaskTCB,
5,
23,
&err);
/* Check "err" */
:
:
}
} |