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.

9<br />

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

■<br />

Avoid using a routine or module name as the first word in a sentence, but if<br />

you must, do not capitalize it.<br />

Parameters. When referring to parameters in text, surround the argument<br />

name with the angle brackets < and >. For example, if a routine getName( )<br />

had the following declaration:<br />

VOID getName<br />

(<br />

int tid, /* task ID */<br />

char * pTname /* task name */<br />

)<br />

You might say something like the following:<br />

This routine gets the name associated with the specified task ID and<br />

copies it to .<br />

9<br />

■<br />

Commands, Files, Tasks, Global Variables, Operators, C Keywords, Network<br />

Interfaces, and so on. Place names for these elements in single-quotes; for<br />

example:<br />

This routine maps an error number in ‘errno’ to an error message.<br />

■<br />

■<br />

Terminal Keys. Enter the names of terminal keys in all uppercase; for example,<br />

RETURN, ESC. Prefix the names of control characters with CTRL+; for example,<br />

CTRL+C.<br />

References to Publications. References to chapters of publications should take<br />

the form Publication Title: Chapter Name. For example, you might say:<br />

For more information, see the<br />

.I "VxWorks Programmer’s <strong>Guide</strong>: I/O System."<br />

■<br />

Do not include the chapter number. References to documentation volumes<br />

should be set off in italics. For general cases, use the .I macro. However, in<br />

SEE ALSO sections, use the .pG and .tG macros for the VxWorks Programmer’s<br />

<strong>Guide</strong> and Tornado User’s <strong>Guide</strong>, respectively. For more information, see Markup<br />

Commands, p.190.<br />

Section-Number Cross-References. Do not use the UNIX<br />

parentheses-plus-number scheme to cross-reference the documentation<br />

sections for libraries and routines:<br />

CORRECT:<br />

sysLib, vxTas()<br />

181

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

Saved successfully!

Ooh no, something went wrong!