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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.4.2 ret_wup (Return and Wakeup Task)
60
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Caution When this system call is issued from an interrupt handler, be sure to save the register values
Remark Because this system call is only supported in version 2.00 or above of the C complier CC78K4, it
Returns from an interrupt handler and wakes up a task.
Returns from an interrupt handler and wakes up an interrupt processing task indicated by tskid (the task
placed in the WAIT state by “slp_tsk” or “wai_tsk”). If the target task does not execute “slp_tsk” or “wai_tsk”,
the request is queued.
Even if “i
delayed until execution exits from the interrupt handler after this system call has been issued.
None
tskid (Task Identifier)
None.
Does not return to the interrupt handler that issued the system call.
[Large/Small model]
MOVG
BR
Unlike the other system calls, this system call is caused to branch by the jump instruction.
ret_wup (tskid);
char
before the interrupt occured to the stack. Save the register values to the stack in the sequence
shown in Fig. 4-2. If the interrupt handler occupies a register bank, select the register bank of
the task executed before the interrupt has occurred, and then call this system call.
cannot be used with a C complier of a version lower than 2.00. With a C complier of a version 2.00 or
above, specify “#pragma
*tskid;
´´´
!ret_wup
UUP, #tskid
_yyy” system call is issued in the interrupt handler, dispatching does not take place and is
CHAPTER 4
D
rtos_interrupt” (refer to APPENDIX 2).
Task ID (TCB top address)
RX78K/IV SYSTEM CALL LIST
- 24 bits (large model)
- 16 bits (small model)

Related parts for USBB17RX78K4-XXX