-
wup_tsk
iwup_tsk
-
ER wup_tsk ( ID tskid );
ER iwup_tsk ( ID tskid );
|
MOV A, #tskid
CALL !!_wup_tsk
MOV A, #tskid
CALL !!_iwup_tsk
|
|
|
|
|
ID tskid;
|
ID number of the task to be woken up.
Value: ID number of the task to be woken up.
|
These service calls cancel the WAITING state (sleeping state) of the task specified by parameter
tskid.
As a result, the target task is moved from the sleeping state to the READY state, or from the WAITING-SUSPENDED state to the SUSPENDED state.
If the target task is in a state other than the sleeping state when this service call is issued, this service call does not move the state but increments the wakeup request counter (by added 0x1 to the wakeup request counter).
Note 1 If the target task is moved to the READY state after this service call is issued, this service call also re-queues the task at the end of the ready queue corresponding to the priority of the task.
Note 2 The wakeup request counter managed by the RI78V4 is configured in 7-bit widths. If the number of wakeup requests exceeds the maximum count value 127 as a result of issuing this service call, the counter manipulation processing is therefore not performed but "E_QOVR" is returned.
|
|
|
|
|
|
|
|
Object state error (specified task is in the DORMANT state).
|
|
|
Queue overflow (overflow of wakeup request count "127").
|