English
Language : 

CC78K4 Datasheet, PDF (407/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Handler for RTOS
#pragma rtos_interrupt ...
(Output object of compiler)
When -ML, -QV is specified (default)
pop
movg
br
L0003 :
pop
movg
pop
pop
pop
pop
pop
reti
whl
sp,whl
!!_ret_wup
whl
sp,whl
ax,bc,rp2,rp3
vvp
uup
tde
whl
;Sets back stack pointer
;Sets back stack pointer
;Restores register
@@VECT06 CSEG AT
_@vect06:
DW
_intp
0006H
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if the compiler does not support the interrupt handler for RTOS.
• When changing to the interrupt handler for RTOS, modify the program according to the method above.
From this C compiler to another C compiler
• Handled as an ordinary function if the #pragma rtos_interrupt specification is deleted.
• When using as an interrupt handler for RTOS, modification is required according to the specification of each
compiler.
User’s Manual U15556EJ1V0UM
407