Renesas M3T-MR100 Manual de usuario Pagina 28

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 304
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 27
- 14 -
3.2 Service Call
How does the programmer use the kernel functions in a program?
First, it is necessary to call up kernel function from the program in some way or other. Calling a kernel function is referred
to as a service call. Task activation and other processing operations can be initiated by such a service call (See Figure 3.9).
Key input
Task
Kernel
Remote control
task
Service call Task switching
Figure 3.9 Service call
This service call is realized by a function call when the application program is written in C language, as shown below.
act_tsk(ID_main,3);
Furthermore, if the application program is written in assembly language, it is realized by an assembler macro call, as shown
below.
act_tsk #ID_main
Vista de pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 303 304

Comentarios a estos manuales

Sin comentarios