Everything

sta_tsk

ista_tsk

Outline
Activate task (does not queue an activation request).
C format
 ER      sta_tsk (ID tskid, VP_INT stacd);
 ER      ista_tsk (ID tskid, VP_INT stacd);
Parameter(s)
I/O
Parameter
Description
I
 ID      tskid;
ID number of the task to be activated.
I
 VP_INT  stacd;
Start code (extended information) of the task.

Explanation
These service calls move a task specified by parameter tskid from the DORMANT state to the READY state.
As a result, the target task is queued at the end on the ready queue corresponding to the initial priority and becomes subject to scheduling by the RI850V4.
This service call does not perform queuing of activation requests. If the target task is in a state other than the DORMANT state, the status manipulation processing for the target task is therefore not performed but "E_OBJ" is returned
Specify for parameter stacd the extended information transferred to the target task.
Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_ID
-18
Invalid ID number.
- tskid < 0x0
- tskid > Maximum ID number
E_CTX
-25
Context error.
- This service call was issued in the CPU locked state.
E_OBJ
-41
Object state error
- Specified task is not in the DORMANT state.
E_NOEXS
-42
Non-existent object.
- Specified task is not registered.