Chapter 7. Project Files; Standard Project Files; Initialisation Code (Resetprg.c / Resetprg.h); Board Initialisation Code (Hwsetup.c / Hwsetup.h) - Renesas REG10J0083-0100 Tutorial Manual

Renesas single-chip microcomputer starter kit
Table of Contents

Advertisement

7.1. Standard Project Files

The RSK tutorials are configured so that it is possible to provide the same tutorial code on multiple RSK products. This allows the
evaluation of the different processor cores using equivalent code. To achieve this, the following files are common between all device cores
and Tool-chains.
Each of the tutorial files has detailed comment text describing the function of each code entry. Please refer to the source code for greater
detail on the purpose and operation of the compiler specific details.

7.1.1. Initialisation code (resetprg.c / resetprg.h)

This is the entry point of the main tutorial code.
Initialisation of the variables used in the C compilers and initialisation of stack pointers are completed in the _INITSCT function for the H8
and SH compilers. The call to HardwareSetup() will initialise the device hardware and peripherals ready for the tutorial software.
The call to 'main()' will start the main demonstration code.

7.1.2. Board initialisation code (hwsetup.c / hwsetup.h)

There are four common stages to the configuration of the microcontroller device. The code to demonstrate this is therefore split into four
functions. Each function is written specifically for the device supported. The function calls are shown below.

Chapter 7. Project Files

14

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2472

Table of Contents