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

■<br />

Create a <strong>BSP</strong> product. This applies only to customers who intend to distribute<br />

their <strong>BSP</strong> to other Wind River customers. See A.4 Product Contents, p.205 for<br />

information on how to package a <strong>BSP</strong> product for delivery to customers.<br />

A.2 Code Interface Changes<br />

None of the standard APIs used in <strong>BSP</strong>s have been changed since Tornado 1.0.1.<br />

The Tornado Release Notes, 2.0, mentions changes to the API for pciConfigLib and<br />

access mechanism 0; however, these modifications should affect very few<br />

customers, if any at all.<br />

The version numbers of Wind River <strong>BSP</strong>s have been updated to version 1.2 as a<br />

result of changes to product packaging. Wind River uses a <strong>BSP</strong> identification<br />

scheme of the form X.X/Y, where X.X is the <strong>BSP</strong> version identification, and Y is the<br />

revision ID. The revision ID is incremented by one each time a <strong>BSP</strong> is updated or<br />

re-released. The first revision number for any new <strong>BSP</strong> is zero (0), not one (1). The<br />

config.h file includes the macro <strong>BSP</strong>_REV, which is a string indicating the revision<br />

number of the <strong>BSP</strong>, for example:<br />

#define <strong>BSP</strong>_VER_1_2 1<br />

#define <strong>BSP</strong>_VER_1_1 1<br />

#define <strong>BSP</strong>_VERSION "1.2" /* A Tornado 2.0 <strong>BSP</strong> */<br />

#define <strong>BSP</strong>_REV "/0" /* First Tornado 2.0 revision */<br />

The config.h file also declares the <strong>BSP</strong> version number in both string and macro<br />

form. The <strong>BSP</strong>_VERSION macro is a string, for example “1.2”. The macro<br />

<strong>BSP</strong>_VER_1_2 is defined to be the integer 1 and can be used in both #if and #ifdef<br />

expressions. Since version 1.2 <strong>BSP</strong>s are otherwise compatible with version 1.1<br />

<strong>BSP</strong>s, the macro <strong>BSP</strong>_VER_1_1 can also be defined.<br />

At the end of config.h, add directives that #include the project parameters header<br />

file when building from the project facility.<br />

#if defined(PRJ_BUILD)<br />

# include "prjParams.h"<br />

#endif<br />

204

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

Saved successfully!

Ooh no, something went wrong!