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.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

In Tornado 2.x, a code generator outputs the system configuration files, basing<br />

them only on those components selected for configuration by the user. The overall<br />

configuration of a project is the list of included components and their properties.<br />

Details of how the project facility and code generator work can be found in the<br />

Tornado User’s <strong>Guide</strong>: Projects.<br />

In the past, you thought of components as the code and parameters included in the<br />

system by making modifications to the configuration files (config.h or<br />

configAll.h), as follows:<br />

#define INCLUDE_FOO<br />

For Tornado 2.x, you describe a component by defining its properties in a CDF, as<br />

follows:<br />

Component INCLUDE_FOO { // Define a component called INCLUDE_FOO.<br />

NAME<br />

Foo example component<br />

SYNOPSIS This is just an example component<br />

... // other properties<br />

}<br />

Component properties fall into one of the following four categories:<br />

■<br />

■<br />

■<br />

Code. This can be a combination or subset of object code (modules) and source<br />

code (configlettes and stubs) used in the build of a project.<br />

Configuration Information. CDL provides a rich set of properties to be used to<br />

describe a component. These can be specified, altered, added, or eliminated.<br />

Parameters are configurable properties expressed as data types. These are<br />

typically preprocessor macros used within a component’s configuration code.<br />

There is a separate CDL object used to define parameters.<br />

Integration Information. These properties control how a component is<br />

integrated into an executable “system image,” for example, an initialization<br />

routine and a description of when in the initialization sequence that routine<br />

should be called.<br />

Integration properties also define dependencies among components, replacing<br />

the #ifdef/#endif statements that proliferated in previous versions of<br />

Tornado.<br />

114

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

Saved successfully!

Ooh no, something went wrong!