...
If successful, OSTaskRegGetID()
will return an ID between 0
and OS_CFG_TASK_REG_TBL_SIZE-1.
Arguments
p_err
is a pointer to a variable that will contain an error code returned by this function.
...
If you already called OSTaskRegGetID()
OS_CFG_TASK_REG_TBL_SIZE
(see os_cfg.h
) times and thus there are no more IDs available to be assigned.
Returned Value
The next available task register ID or OS_CFG_TASK_REG_TBL_SIZE
if all the IDs have already been assigned.
Notes/Warnings
None