summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/CONTRIBUTING43
1 files changed, 33 insertions, 10 deletions
diff --git a/firmware/CONTRIBUTING b/firmware/CONTRIBUTING
index 73f124eb7b..dce0227d25 100644
--- a/firmware/CONTRIBUTING
+++ b/firmware/CONTRIBUTING
@@ -3,17 +3,40 @@ $Id$
3In order for the project to run as smoothly as possible, it's best if all 3In order for the project to run as smoothly as possible, it's best if all
4contributors adhere to a few simple conventions: 4contributors adhere to a few simple conventions:
5 5
6- Write all code in C. Sometimes assembly is faster, but C is always more 6Language
7 readable and maintainable. 7--------
8Write all code in C. Sometimes assembly is faster, but C is always more
9readable and maintainable.
8 10
9- Write normal C code. Don't redefine the language. No new types, 11Language features
10 no C++isms or Javaisms. Also, do not use "const". 12-----------------
13Write normal C code. Don't redefine the language. No new types (structs are
14structs, not typedefs), no C++isms or Javaisms. Also, avoid using "const".
11 15
12- Variables and function names should be all lower case. 16Names
13 Preprocessor symbols should be all uppercase. 17-----
18Variables and function names should be all lower case.
19Preprocessor symbols should be all uppercase.
14 20
15- Use the brace placement style of your choice, but indent your code with 21Style
16 four spaces. Don't use TAB characters, as that will mess up code display in 22-----
17 CVS, printing, and a zillion other places. 23When changing code, follow the code style of the file you are editing.
18 24
19- Use "unix style" line feeds: "LF" only. Do not use "CR+LF". 25When writing new files, you may use the brace placement style of your choice.
26
27Always indent your code with four spaces. Don't use TAB characters, as that
28will mess up code display in CVS, printing, and a zillion other places.
29
30Keep lines below 80 columns length. Use whitespace and newlines to make the
31code easy to browse/read.
32
33Text format
34-----------
35Use "unix style" line feeds: "LF" only. Do not use "CR+LF".
36
37Patches
38-------
39Create a patch using 'cvs diff -ub'. Trim your patches so they only contain
40relevant changes.
41Submit all patches to the mailing list. Put [PATCH] first on the subject line
42of your mail. If the patch is very large (>50k), gzip it before you send it.