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

NAME Section<br />

DESCRIPTION<br />

an overall description of the library or subroutine<br />

INCLUDE FILES<br />

the included .h files (libraries only)<br />

RETURNS<br />

the values returned (subroutines only)<br />

SEE ALSO<br />

cross-references to documentation for other libraries and routines, or other<br />

user manuals<br />

Special considerations for these subsections are discussed below.<br />

■<br />

Libraries. Describe briefly what this collection of routines does. The hyphen<br />

must appear exactly as indicated (space-hyphen-space)—do not use<br />

backslashes or double hyphens. The general format is:<br />

nameLib.c - the such-and-such library<br />

For example:<br />

sysALib.s - mfr&board system-dependent assembly routines<br />

sysLib.c - mfr&board system-dependent library<br />

■<br />

Be sure to include the file-name extension (.c, .s); but note that the refgen<br />

process strips it off so that it does not appear in the final reference page entry.<br />

Subroutines. For the one-line heading/definition, use the imperative mood<br />

and convey action. The general format is:<br />

name - do such and such<br />

For example:<br />

DESCRIPTION Section<br />

sysMemTop - get the address of the top of memory<br />

Do not include the subroutine parentheses in the heading; the refgen process<br />

adds them in so that they appear in the final reference page entry.<br />

Start off the description section by saying: “This library...” or “This routine...”—do<br />

not repeat the module or subroutine name here; it has already been made<br />

clear. The remainder of the sentence should be a summary of what the library or<br />

routine does or provides (and in more depth than the NAME line).<br />

184

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

Saved successfully!

Ooh no, something went wrong!