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

9.3 Format<br />

This section discusses general formatting requirements of Wind River reference<br />

documentation. Specific requirements relevant to <strong>BSP</strong>s are discussed in<br />

9.4 Subsections, p.183.<br />

Layout<br />

■<br />

Module Layout. To work with refgen, the documentation in source modules<br />

must be laid out in accordance with a few simple principles. These layout<br />

requirements are described in the Tornado User’s <strong>Guide</strong>: Coding Conventions.<br />

■<br />

General. Text should fill out the full line length (assume about 75<br />

characters). Do not start every sentence on a new line.<br />

Special Elements<br />

■<br />

Subroutines. Include parentheses with all subroutine names, even those<br />

generally construed as shell commands. Do not put a space between the<br />

parentheses or after the name (unlike the Wind River convention for code):<br />

CORRECT:<br />

taskSpawn()<br />

INCORRECT:<br />

taskSpawn( ), taskSpawn (), taskSpawn<br />

Note that there is one major exception to this rule: In the subroutine title, do<br />

not include the parentheses in the name of the subroutine being defined:<br />

CORRECT:<br />

/*************************************************<br />

*<br />

* xxxFunc - do such and such<br />

INCORRECT:<br />

/*************************************************<br />

*<br />

* xxxFunc() - do such and such<br />

180

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

Saved successfully!

Ooh no, something went wrong!