English
Language : 

CC78K4 Datasheet, PDF (410/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
(28) Task function for real-time OS (RTOS)
Task Function for RTOS
#pragma rtos_task
FUNCTION
• The function names specified with #pragma rtos_task are interpreted as the tasks for RTOS.
• If the function name is specified and the entity definition is not in the same file, an error occurs.
• The preprocessing of the task function for RTOS does not save the registers for frame pointer/register
variables. The postprocessing is not output.
• The following RTOS system call calling functions can be used.
[RTOS system call calling functions]
(a) void ext_tsk (void);
Calls RTOS system call ext_tsk.
However, when ext_tsk is called in the ext_tsk prototype declaration or entity definition, interrupt function, or
interrupt handler for RTOS, an error occurs.
• The RTOS system call calling function of ext_tsk is called by an unconditional branch instruction. If ext_tsk
is issued after the function, the postprocessing is not output.
• When there is no ext_tsk in the task function for RTOS and the -W2 option is specified, a warning message is
output.
EFFECT
• The task function for RTOS can be described at the C source level.
• The saving and postprocessing of the register frame pointer/register variable are not output, so the code
efficiency is improved.
410
User’s Manual U15556EJ1V0UM