...
As shown below, a task register is changed by calling OSTaskRegSet()
, and read by calling OSTaskRegGet()
. The desired task register is specified as an argument to these functions and can take a value between 0
and OS_CFG_TASK_REG_TBL_SIZE
-1.
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.
...
If OS_CFG_ARG_CHK_EN
is set to 1
in os_cfg.h
: if a valid task register identifier is not specified.
Returned Value
None
Notes/Warnings
None