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 />

E.1.1 Component Properties<br />

Component component { // required for all components<br />

NAME name // readable name (e.g., "foo manager").<br />

// should be in all lower case.<br />

SYNOPSIS desc // one-line description<br />

MODULES m1 m2 .. // object modules making up the service.<br />

// used to generate dependency<br />

// information.<br />

// it is important to keep this list<br />

// small,since the tool’s dependency<br />

// engine assumes that the component is<br />

// included if *any* of the modules are<br />

// dragged in by dependency. It may make<br />

// sense to split a large number of<br />

// modules into several distinct<br />

// components.<br />

CONFIGLETTES 1 s2 .. // source files in the component that are<br />

// #included in the master configuration<br />

// file.<br />

// file paths are assumed to be relative<br />

// to $(WIND_BASE)/target/config/comps/src<br />

<strong>BSP</strong>_STUBS s1 s2 .. // source file stubs that should be copied<br />

// into the <strong>BSP</strong> and customized for the<br />

// component to work.<br />

// file paths are assumed to be relative<br />

// to $(WIND_BASE)/target/config/comps/src<br />

// (<strong>BSP</strong>_STUBS are supported for Tornado 2.2<br />

// only; they are not supported in earlier<br />

// Tornado 2.x releases)<br />

HDR_FILES h1 h1 .. // header files that need to be included<br />

// to use this component. Typically<br />

// contains prototypes for the<br />

// initialization routine.<br />

CFG_PARAMS p1 p2 .. // configuration parameters, typically<br />

// macros defined in config[All].h, that<br />

// can change the way a component works.<br />

// see Parameters, below, for more info.<br />

INIT_RTN init(..) // one-line initialization routine.<br />

// if it needs to be more than one line,<br />

// put the code in a CONFIGLETTE.<br />

LINK_SYMS s1 s2 .. // reference these symbols in order to drag<br />

// in the component from the archive.<br />

// this tells the code generator how to<br />

// drag in components that don’t need to<br />

// be initialized.<br />

232

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

Saved successfully!

Ooh no, something went wrong!