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

software installation instructions. If the reference <strong>BSP</strong> has not previously been<br />

installed, refer to the installation instructions that came with that <strong>BSP</strong>.<br />

Directories and Files<br />

Host Support<br />

The <strong>BSP</strong> VTS tests are in the host/src/test/bspVal/src/tests directory. The Tcl source<br />

files on which the <strong>BSP</strong> VTS is built reside in the host/src/tcl directory. The source<br />

files for the tclserial library reside in host/src/test/tclserial. The binaries for tools<br />

and the execution script that runs the <strong>BSP</strong> VTS reside in the host/hostType/bin<br />

directory. The configuration files for <strong>BSP</strong> VTS reside in the<br />

host/resource/test/bspVal directory.<br />

The <strong>BSP</strong> VTS is implemented in Tcl, version 7.6. The <strong>BSP</strong> VTS script starts as a<br />

UNIX shell script and later runs a Tcl script under the wtxtcl shell, which is a<br />

binding of the WTX protocol to the Tcl language. In essence, the <strong>BSP</strong> VTS script<br />

runs as a tool attached to the target server(s).<br />

The tclserial library provides a set of functions that allow communication with a<br />

serial port. There is no need to generate the Tcl binary and tclserial libraries if you<br />

are using a supported host configuration. Wind River pre-installs the Tcl binaries<br />

and the tclserial libraries in host/hostType/bin for the supported host<br />

configurations. 1<br />

Complete source code is included to facilitate maintenance and extension. Tcl and<br />

the tclserial library are portable and can be compiled on hosts other than the<br />

supported hosts.<br />

The complete source code for Tcl is available in the host/src/tcl directory. To build<br />

and test Tcl for a host not supported by Wind River, run make for the selected<br />

hostType in this directory. Although Tcl should build without errors, the self-test<br />

may report certain errors that do not significantly affect the operation of the <strong>BSP</strong><br />

VTS.<br />

To build the tclserial library, run make for the selected hostType in the<br />

host/src/test/tclserial directory.<br />

1. The tclserial library is a shared or dynamically linked library, whichever is appropriate to<br />

the platform (pkgtclserial.so on a Solaris or SunOS system, pkgtclserial.sl on HP-UX,<br />

pkgtclserial.dll on Windows).<br />

146

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

Saved successfully!

Ooh no, something went wrong!