16
CHAPTER 2 Developing Application Systems
■
Initialize handler
The initialize handler is called by the kernel. The handler initializes the devices used by the
kernel (such as the timer device used for the system clock) and the devices used in the user
program (such as I/O devices).
The initialize handler can use those system calls that can be called from REALOS/907 task
independent portions.
The REALOS/907 initialize handler performs the following processing.
❍
Initialize the interrupt controller
Initializes the interrupt controller. Initialize the interrupt controller according to the structure
of the target hardware.
❍
Initialize the timer device
Initializes the interval timer that generates the fixed period interrupts used by the system
clock (set the period to suit wai_tsk and the cyclic handler). In general, set a period of 1ms
(at CPU operation frequency of 16MHz) or more.
In the configurator, assign the interval timer interrupt handler to the corresponding
interrupt vector number.
❍
Initialize user devices
Initialize the devices used by the user program. You can also uwse this routine to perform
system initialization by using software as well as hardware.
❍
Start tasks
As all tasks are initially in the DORMANT state, start the initial tasks from this routine.
■
System clock timer interrupt handler
The timer interrupt handler for the system clock is the system clock interrupt handler used by
REALOS/907. The handler performs the timer interrupt processing required by the user target
hardware (such as clearing the interrupt) then calls the REALOS/907 system clock processing.
The r97_sclk_hdr label is defined for the system clock processing and is declared globally. Use
this label to jump to the system clock processing.
In the configurator, assign the label for the system clock timer interrupt handler to the interrupt
number corresponding to the timer interrupt on the user target hardware.
*
Содержание F2MC-16L Series
Страница 2: ... ...
Страница 4: ... ...
Страница 10: ...vi ...
Страница 12: ...viii ...
Страница 44: ...32 CHAPTER 4 Program Reference for the Standard I O Library ...
Страница 53: ...41 APPENDIX B Running the Sample System Figure Be Project Member List ...
Страница 54: ...42 APPENDIX Figure Bf Set Configuration File Dialog Box ...
Страница 64: ...52 APPENDIX Figure Cb Sample System Memory Map Continued ...
Страница 65: ...53 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 68: ... ...