BSP and Device Driver Development Guide
The initialization code is the first piece of code executed when there's a reset/reboot. Its purpose is to initialize the board for the application. This chapter contains a narrative description of the initialization process followed by a description of each of the files and routines commonly found in the BSP related to initialization. The remainder of this chapter covers special issues which require attention such as interrupt vector table and chip select initialization.
Most of the examples in this chapter will be based on the gen68340 BSP initialization code. Like most BSPs, the initialization for this BSP is divided into two subdirectories under the BSP source directory. The gen68340 BSP source code is in the following directory:
c/src/lib/libbsp/m68k/gen68340
The following source code files are in this subdirectory.
start340
: assembly language code which contains early
initialization routines
startup
: C code with higher level routines (RTEMS
initialization related)
NOTE: The directory start340
is simply named start
or
start followed by a BSP designation.
In the start340
directory are two source files. The file
startfor340only.s
is the simpler of these files as it only has
initialization code for a MC68340 board. The file start340.s
contains initialization for a 68349 based board as well.
BSP and Device Driver Development Guide
Copyright © 1988-2004 OAR Corporation