English
Language : 

CC78K4 Datasheet, PDF (408/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
(27) Interrupt handler qualifier for real-time OS (RTOS)
Interrupt Handler Qualifier for RTOS
__rtos_interrupt
FUNCTION
• The function declared with the _ _rtos_interrupt qualifier is interpreted as an interrupt handler for RTOS.
• The two RTOS system call calling functions ret_int/ret_wup can be called in the function declared with the
keywords _ _rtos_interrupt (for details of the RTOS system call calling functions, refer to List of RTOS
System Call Calling Functions described later).
If the prototype declaration or the entity definition of ret_int/ret_wup and ret_int/ret_wup are called outside
the interrupt handler for RTOS, an error occurs.
• The functions to call the two RTOS system call calling functions ret_int/ret_wup are called by an
unconditional branch instruction.
• If there is neither ret_int nor ret_wup in the interrupt handler for RTOS, an error occurs.
EFFECT
• The setting of the vector table and the definition of the interrupt handler function for RTOS can be described in
separate files.
USAGE
• _ _rtos_interrupt is added to the qualifier of the interrupt handler for RTOS.
_ _rtos_interrupt void func ( ) { Processing }
[List of the system call calling functions for RTOS]
(a) void ret_int ( ) ;
Calls system call ret_int for RTOS.
(b) void ret_wup (x) ;
char *x ;
Calls system call ret_wup for RTOS with x as an argument.
408
User’s Manual U15556EJ1V0UM