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

(2) comps/vxWorks/arch/arch<br />

Contains all architecture-specific VxWorks components (or component<br />

overrides).<br />

(3) config/bsp<br />

Contains all <strong>BSP</strong>-specific components.<br />

(4) the project directory<br />

Contains all other components.<br />

Within a directory, to control alphanumeric order, a two digit number is prepended<br />

to each .cdf file. Wind River reserves the first 50 numbers, that is 00xxxx.cdf<br />

through 49xxxx.cdf. The remaining numbers, 50 through 99, are reserved for third<br />

parties. The xx in the .cdf files above are placeholders for these numbers. (That is,<br />

0n+1 overrides 0n.)<br />

This method of setting precedence allows project, <strong>BSP</strong>, and CPU<br />

architecture-specific overrides of generic components or parameters. If a <strong>BSP</strong><br />

provider wanted to change the maximum number of files that can be open<br />

(NUM_FILES) to 75 from the default value of 50, it could be done in a <strong>BSP</strong>-specific<br />

CDF, as follows:<br />

6<br />

Parameter NUM_FILES {<br />

DEFAULT 75<br />

}<br />

If you are creating a new CDF, you must place it in the appropriate path, based on<br />

the nature of the contents and the desired level of precedence. Your choices of<br />

paths are listed above in the discussion about precedence:<br />

– comps/vxWorks for generic VxWorks component descriptions only<br />

– comps/vxWorks/arch/arch for architecture-specific VxWorks component<br />

descriptions<br />

– config/bsp for board-specific component descriptions<br />

– the project directory for all other files<br />

6.3.3 Defining a Component<br />

This section describes the process of defining your own component. To allow for<br />

the greatest flexibility, there is no convention governing the order in which<br />

properties describe a component or the sequence in which CDL objects are entered<br />

127

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

Saved successfully!

Ooh no, something went wrong!