diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-10 08:12:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-10 08:12:35 -0600 |
commit | 5d6b2cc6c28dbb8ff7b79657c07e0090af9e467b (patch) | |
tree | 685b6d19cde3c39102d6342e57d5eedf2f0c3fcd /nuttx/Documentation | |
parent | 4fe89c2eb6d5895da7f3017f7f44e48e7892b3b9 (diff) | |
download | px4-nuttx-5d6b2cc6c28dbb8ff7b79657c07e0090af9e467b.tar.gz px4-nuttx-5d6b2cc6c28dbb8ff7b79657c07e0090af9e467b.tar.bz2 px4-nuttx-5d6b2cc6c28dbb8ff7b79657c07e0090af9e467b.zip |
Add support for TM4C GPIOs
Diffstat (limited to 'nuttx/Documentation')
-rwxr-xr-x | nuttx/Documentation/NuttXCCodingStandard.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nuttx/Documentation/NuttXCCodingStandard.html b/nuttx/Documentation/NuttXCCodingStandard.html index 946c63763..0693efc50 100755 --- a/nuttx/Documentation/NuttXCCodingStandard.html +++ b/nuttx/Documentation/NuttXCCodingStandard.html @@ -12,7 +12,7 @@ <h1><big><font color="#3c34ec"> <i>NuttX C Coding Standard</i> </font></big></h1> - <p>Last Updated: February 6, 2014</p> + <p>Last Updated: March 9, 2014</p> </td> </tr> </table> @@ -1747,7 +1747,7 @@ ptr = (FAR struct somestruct_s *)value; </li> <li> <b>Braces in column 1</b> - The opening and close braces of the compound statement mst be placed in column one. + The opening and close braces of the compound statement must be placed in column one. </li> <li> <b>First definition or statement in column 3</b>. @@ -1755,9 +1755,18 @@ ptr = (FAR struct somestruct_s *)value; Standards for statements are covered in the <a href="#statements">following paragaraph</a> </li> <li> + <b>Local variables first</b>. + Because NuttX conforms to the older C89 standard, all variables that have scope over the entire compound statement must be defined at the beginning of the compound statement. + A single blank line must follow the local variable definitions. + </li> + <li> <b>Long functions are discouraged</b>. As a rule of thumb, the length of a function should be limited so that it would fit on a single page (if you were to print the source code). </li> + <li> + <b>Space after the function boady</b> + A one (and only one) blank line must follow the closing right brace of the function body. + </li> </ul> <h2><a name="retvalues">Returned Values</a></h2> |