USBB17RX78K4-XXX NEC Electronics, USBB17RX78K4-XXX Datasheet - Page 48

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.1.9 wup_tsk (Wakeup Task)
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
iwup_tsk (Wakeup Task for Interrupt)
Wakes up a task and places it in the READY state from the WAIT state.
Places a task that has been placed in the WAIT state by system call “slp_tsk” or “wai_tsk” in the READY state.
The target task is indicated by tskid. The task itself cannot be specified.
If the target task has not executed “slp_tsk” or “wai_tsk” and is not in the WAIT state, this “wup_tsk” request is
queued. In this case, this “wup_tsk” request becomes valid when the target task later executes “slp_tsk” or
“wai_tsk”.
If the number of wake-up requests in the queue is about to exceed the upper limit (0FFH), an error (E_QOVR)
is returned.
wup_tsk = 8
tskid (Task Identifier)
E_OK
E_DMT
E_QOVR
On issuing wup_tsk
[Large model]
MOV
MOVW
MOV
CALLT
C register = return parameter
On issuing iwup_tsk
[Large model]
MOVG
CALLT
C register = return parameter
On issuing wup_tsk
ret = wup_tsk (tskid);
char
bnk0_b, #8
bnk0_up, #tskid
bnk0_d, #tskid
[40H]
:
UUP, #tskid
[46H]
:
*tskid;
CHAPTER 4
Task ID (TCB top address)
Normal termination
Specified task is in DORMANT state
Queue overflow
[Small model]
MOV
MOVW
CALLT
C register = return parameter
[Small model]
MOVW
CALLT
C register = return parameter
On issuing iwup_tsk
ret = iwup_tsk (tskid);
char
RX78K/IV SYSTEM CALL LIST
bnk0_b, #8
bnk0_up, #tskid
[40H]
:
UP, #tskid
[46H]
:
*tskid;
- 24 bits (large model)
- 16 bits (small model)
39

Related parts for USBB17RX78K4-XXX