02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E<br />

Component Language<br />

initialization group. It can also declare that it should be initialized before or after<br />

other components within that group.<br />

The two primary initGroups for project compilation are usrInit and usrRoot. Each<br />

initialization group translates to a C function declaration where the body of the<br />

function is the initialization code from each of the constituent components.<br />

In the initialization sequences that follow, names appearing all in uppercase are<br />

component names. Names appearing in all lowercase are routine names. Each<br />

initialization group has a routine with the same name as the initialization group.<br />

Indentation is used in this chart to represent the hierarchy of the standard<br />

components as defined by Tornado 2.x. When the prjConfig.c file is generated,<br />

each included component is replaced by its initialization code fragment, as defined<br />

in the CDF for that component. Excluded components do not contribute code<br />

fragments to their initialization group.<br />

NOTE: The project facility build process does not apply to boot ROMs. Boot ROMs<br />

for Tornado 2.x can only be built from the traditional command line.<br />

E.3.1 romInit.s<br />

Only used for ROMmed VxWorks images, this assembly code initializes the<br />

processor and memory. This code always ends by calling romStart( ).<br />

E<br />

E.3.2 romStart.c<br />

Only used for ROMmed VxWorks images, this code relocates text and data from<br />

within the ROM itself into RAM. It terminates by calling the routine located at<br />

RAM_DST_ADRS. This is normally the address of usrEntry( ).<br />

E.3.3 usrEntry.c<br />

Only used for ROMmed VxWorks images, this routine does some<br />

architecture-specific initialization and terminates by calling usrInit( ) in<br />

prjConfig.c.<br />

239

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!