
QDK™
M16C/Neutrino-NC30
www.state-machine.com/m16c
5 Board Support Package
The Board Support Package (BSP) for M16C with the non-preemptive Vanilla kernel is located in
the directory:
<qp>\examples\m16c\vanilla\nc30\dpp_neutrino\
and consists of the following files:
1.
bsp.h
contains the Board Support Package interface (BSP)
2.
bsp.c
contains the implementation of the BSP, which includes all ISRs and all platform-specific
QP-nano callbacks.
NOTE: This QDK uses the recommended by Renesas C-startup for M16C. The C-startup code is
comprised of the following files (see also Listing 1):
1.
cstartdef.h
– stack and heap size definitions (customize for your application)
2.
firm.c
3.
firm_ram.c
4.
fvector.c
5.
heap.c
6.
initsct.c
7.
initsct.h
8.
intprg.c
– default interrupt handlers (customize for your application)
9.
resetprg.c
10.
resetprg.h
Out of these 10 files only the indicated 2 files need customization for a specific application.
5.1 Compiler Options Used
You set the compiler and linker options through the HEW IDE. The compiler options are as follows:
-c -g -Wall -silent
The –g option denotes that the compiler should generate the Debug information. This option is only
used in the Debug build. Both the Debug and Release builds use the generic CPU type “With no
specification”.
NOTE: You can access the compiler options by selecting the Build->Renesas M16C Standard
Toolchain..., or by right-clicking on any of the C modules in the Workspace window and choos-
ing the Build Options/Renesas M16C Standard Toolchain... pop-up menu.
Copyright © Quantum Leaps, LLC. All Rights Reserved.
16 of 25
Comentarios a estos manuales