02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6<br />

Components<br />

In the example, the components INCLUDE_EXC_TASK, INCLUDE_LOGGING, and<br />

INCLUDE_PIPES are part of the initGroup usrIosExtraInit. If those components are<br />

included, then their initialization routines are called in the order specified as part<br />

of this initialization group.<br />

The code in an initGroup is synthesized by the project facility into the file<br />

prjConfig.c, always part of every <strong>BSP</strong> project. To see a system’s initialization<br />

sequence, build the project and examine the generated code in prjConfig.c.Tosee<br />

the default initialization sequence, see E.3 Project Initialization Order, p.238.<br />

The following properties describe an initialization group:<br />

NAME<br />

SYNOPSIS<br />

The NAME property can be used to provide a short name for the initGroup;<br />

however, it does not appear anywhere in this release of the GUI. The<br />

SYNOPSIS property is used to provide a brief, readable definition of the<br />

initialization group.<br />

INIT_RTN<br />

The initialization routine that initializes an associated component(s).<br />

INIT_ORDER<br />

Components and initGroups belonging to this initialization group listed in the<br />

order in which they are to be initialized.<br />

6<br />

6.3 Creating Components<br />

This section instructs you how to define your own component or modify an<br />

existing one. You must follow certain conventions when using the CDL. After<br />

describing your component in a component description file, you must place the file<br />

in the proper path, ensuring that the project facility reads the information and<br />

properly includes the component in the hierarchy.<br />

125

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

Saved successfully!

Ooh no, something went wrong!