Everything

slp_tsk

Outline
Put task to sleep (waiting forever).
C format
 ER      slp_tsk ( void );

Assembly format
 CALL    !!_slp_tsk

Parameter(s)
None.
Explanation
As a result, the invoking task is unlinked from the ready queue and excluded from the RI78V4 scheduling subject.
If a wakeup request has been queued to the target task (the wakeup request counter is not set to 0x0) when this service call is issued, this service call does not move the state but decrements the wakeup request counter (by subtracting 0x1 from the wakeup request counter).
Sleeping State Cancel Operation
Return Value
A wakeup request was issued as a result of issuing wup_tsk.
E_OK
A wakeup request was issued as a result of issuing iwup_tsk.
E_OK
Forced release from waiting (accept rel_wai while waiting).
E_RLWAI
Forced release from waiting (accept irel_wai while waiting).
E_RLWAI

Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_RLWAI
-49
Forced release from waiting (accept rel_wai/irel_wai while waiting).