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

! CAUTION: Do not alter Wind River-supplied CDFs directly. Use the naming<br />

convention to create a file whose higher precedence overrides the default<br />

properties of Wind River-supplied components.<br />

Step 11:<br />

Generate the Project Files<br />

The project configuration file (prjConfig.c) for each project is generated by the<br />

project facility based on two things:<br />

■<br />

the set of components selected by the user from the component hierarchy<br />

■<br />

the information in the related component description files<br />

To generate this file, click the Build button in the Build tab of the project facility.<br />

NOTE: Generated project files (prjConfig.c) are free of the preprocessor #ifdefs<br />

found in the traditional static configuration files, and, therefore, are easier to read.<br />

6.3.4 Modifying a Component<br />

Modify the properties of existing components by re-specifying them in any higher<br />

priority CDF file. Third-party CDF files are by convention read last and therefore<br />

have the highest priority. Use the naming convention to create a high-precedence<br />

CDF file that overrides the default properties of Wind River components. See<br />

6.3.2 CDF Precedence and Paths, p.126 for the file naming and precedence<br />

conventions.<br />

In the following example, the default number of open file descriptors<br />

(NUM_FILES) in the standard Wind River component INCLUDE_IO_SYSTEM has<br />

been modified. The normal default value is 50.<br />

Parameter NUM_FILES {<br />

DEFAULT 75<br />

}<br />

By adding these example lines of code to a third-party CDF file, by removing and<br />

adding the component if it is already in the configuration, and by re-building the<br />

project, the value of NUM_FILES is changed to 75. The original Wind River CDF<br />

file, 00vxWorks.cdf, is not changed; the default property value is changed because<br />

the third-party file has higher precedence. Other property values remain the same<br />

unless specifically redefined.<br />

134

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

Saved successfully!

Ooh no, something went wrong!