English
Language : 

CC78K4 Datasheet, PDF (412/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Task Function for RTOS
#pragma rtos_task
(Output object of compiler)
When -ML, -QV is specified (default)
@@CODE
_main :
push
movw
br
_func :
movw
movw
br
END
CSEG
rp3
rp3,#01H
!!_ext_tsk
up,#01H
rp3,#02H
!!_ext_tsk
;1
;Epilogue is not output.
;Frame pointer is not saved.
;1
;2
;Epilogue is not output.
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if the compiler does not support the task function for RTOS.
• When changing to the task function for RTOS, modify the program according to the method above.
From this C compiler to another C compiler
If the #pragma rtos_task specification is deleted, the RTOS task function is used as an ordinary function.
To use as RTOS task function, modification is required according to the specification of each compiler.
412
User’s Manual U15556EJ1V0UM