English
Language : 

CC78K4 Datasheet, PDF (411/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Task Function for RTOS
#pragma rtos_task
USAGE
• Specifies the function name for the following #pragma directives.
• The #pragma directives are described at the start of the C source.
However, the following items can be described before the #pragma directive.
• Comments
• Preprocessing directives that neither define nor reference variables or functions.
• Keywords following #pragma can be described either in uppercase or lowercase letters.
#pragma∆rtos_task [∆task-function-name]
RESTRICTIONS
• callt/callf/noauto/norec/_ _callt/_ _callf/_ _leaf/_ _interrupt/_ _interrupt brk/_ _rtos_interrupt/ _ _ pascal/_ _
flash cannot be specified for the task function for RTOS.
• The task function for RTOS cannot be called in the same manner as ordinary functions.
The RTOS system call calling function name ext_tsk cannot be used for a function name.
The task function for RTOS is not supported when the medium model is specified.
EXAMPLE
(C source)
#pragma rtos_task func
void main ( ) {
int a;
a = 1;
ext_tsk ();
}
void func ( ) {
register int r;
int x;
x = 1;
r = 2;
ext_tsk ();
}
User’s Manual U15556EJ1V0UM
411