Developing A User-Defined Module - Fujitsu F2MC-16L User Manual

Hide thumbs Also See for F2MC-16L:
Table of Contents

Advertisement

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
I 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
❍ 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.
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.)
2.8 Developing a User-Defined Module
*
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16xlF2mc-16F2mc-16hF2mc-16f

Table of Contents