Renesas M3T-MR100 Network Card User Manual


 
- 86 -
[
[
[
[
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
a
a
l
l
d
d
e
e
s
s
c
c
r
r
i
i
p
p
t
t
i
i
o
o
n
n
]
]
]
]
This service call places the issuing task itself from RUNNING state into sleeping wait state. The task placed into WAIT-
ING state by execution of this service call is released from the wait state in the following cases:
When a task wakeup service call is issued from another task or an interrupt
The error code returned in this case is E_OK.
When a forcible awaking service call is issued from another task or an interrupt
The error code returned in this case is E_RLWAI.
When the first time tick occurred after tmout elapsed (for tslp_tsk)
The error code returned in this case is E_TMOUT.
If the task receives sus_tsk issued from another task while it has been placed into WAITING state by this service call, it
goes to WAITING-SUSPENDED state. In this case, even when the task is released from WAITING state by a task wakeup
service call, it still remains in SUSPENDED state, and its execution cannot be resumed until rsm_tsk is issued.
The service call tslp_tsk may be used to place the issuing task into sleeping state for a given length of time by specifying
tmout in a parameter to it. The parameter tmout is expressed in ms units. For example, if this service call is written as
tslp_tsk(10);, then the issuing task is placed from RUNNING state into WAITING state for a period of 10 ms. If specified
as tmout =TMO_FEVR(–1), the task will be kept waiting perpetually, with the service call operating the same way as
slp_tsk.
The values specified for tmout must be within (0x7FFFFFFF-time tick value). If any value exceeding this limit is specified,
operation of the service call cannot be guaranteed.
This service call can only be issued from task context, and cannot be issued from non-task context.