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.

9<br />

Documentation <strong>Guide</strong>lines<br />

9.5 Generating Reference Pages<br />

This section discusses the mechanics of generating <strong>BSP</strong> documentation: the files<br />

and tools used, the text formatting commands, and the makefile system used to<br />

process documentation from source code to printable reference pages.<br />

9.5.1 Files<br />

File-name extensions indicate the following types of files:<br />

.s assembly-language source files.<br />

.c C-language source files.<br />

.nr nroff/troff source file.<br />

.html generated HTML file.<br />

9<br />

Source Directory<br />

target/config/bspname<br />

This directory contains the C and assembly sources and documentation<br />

sources for a particular <strong>BSP</strong>; bspname is a directory name reflecting the maker<br />

and model of the board; for example, mv147 = Motorola MVME147. The files<br />

relevant to documentation are:<br />

Makefile<br />

Master makefile for building <strong>BSP</strong> and VxWorks modules. Three constants<br />

must be defined for documentation: TARGET_DIR, VENDOR, and<br />

BOARD. See 9.5.4 Processing, p.193 for more information.<br />

depend.bspname<br />

Dependency rules generated by Makefile.<br />

sysLib.c<br />

Library of board-dependent C routines.<br />

target.nr<br />

Source for the target-information reference page, containing general<br />

information about a board’s installation requirements or capabilities<br />

as they relate to VxWorks. This file is “manually” created nroff/troff<br />

source.<br />

189

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

Saved successfully!

Ooh no, something went wrong!