
15
2.8 Developing a User-Defined Module
2.8
Developing a User-Defined Module
The kernel module is a user-defined module. You can refer to the sample source files
provided and produce a module that fits your specific requirements.
User-defined modules consist of the following.
• Reset entry routine
• Initialize handler
• System clock timer interrupt handler
■
Reset entry routine
The reset entry routine is started by a reset. The routine initializes the processor and initializes
those peripheral devices that require initialization after a reset.
REALOS/907 system calls cannot be used in the reset entry routine. The system is not
guaranteed to operate correctly if system calls are used.
The entry name of the reset entry routine is specified by the definition statement in the
configurator. (Refer to
Softune REALOS Configurator Manual
for more information.)
The reset entry routine performs the following processing.
❍
Initialize the processor
• Set the operating mode
• Set the stack pointer (SP) (When using an external bus, set temporarily in internal
RAM until the operating mode is set.)
❍
Initialize the peripheral devices
Initializes those peripheral resources and internal devices that require initialization after a
reset.
❍
Pass control to REALOS/907
Passes control to REALOS/907 after completing initialization of the processor and
peripheral devices.
Control is passed to REALOS/907 by jumping directly to the REALOS/907 kernel data
initialization routine. The r97_entry label is defined for the kernel data initialization routine
and is declared globally. Use this label to jump to the routine. REALOS/907 performs
initialization of the OS management data and of the delay interrupt.
*
Содержание 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: ... ...