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.

VxWorks 5.5<br />

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

6.3.1 CDF Conventions<br />

Follow these conventions when working with component description files:<br />

■<br />

■<br />

■<br />

■<br />

■<br />

■<br />

■<br />

All component names are of the form INCLUDE_FOO.<br />

All folders names are of the form FOLDER_FOO.<br />

All selection names are of the form SELECT_FOO.<br />

Parameter names should not match the format of any other object type, but are<br />

otherwise unrestricted. For example, you can use FOO_XXX, but not<br />

INCLUDE_FOO.<br />

All initGroup names should be of the form initFoo. However, Wind River<br />

initGroups use the form usrFoo (for backwards compatibility.)<br />

All component description files have a .cdf suffix.<br />

All .cdf file names begin with two decimal digits, that is, 00xxxx.cdf. These first<br />

two digits control the order in which .cdf files are read within a directory.<br />

6.3.2 CDF Precedence and Paths<br />

The component description files are read at two points:<br />

■<br />

when a project is created<br />

■<br />

after component description files are changed and the project build occurs<br />

The order in which CDFs are read is important to the user. If two files describe the<br />

same property of the same component, the one read last overrides all earlier ones.<br />

The intent is to allow component description files to have some precedence level.<br />

Files read later have higher precedence than those read earlier.<br />

Precedence is established in two complementary ways:<br />

– CDF files reside in certain directories, and those directories are read in a<br />

specified order.<br />

– Within one of these directories, CDFs are read in alphanumeric order.<br />

The project facility sources all .cdf files in any of the following directories. These<br />

directories are read in the order in which they’re presented:<br />

(1) comps/vxWorks<br />

Contains all generic VxWorks components.<br />

126

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

Saved successfully!

Ooh no, something went wrong!