1 CCR Coding Standards
Contents:
- 1. Author’s Note
- 2. Introduction
- 3. Development Definitions
- 4. Names in General
- 5. Macro Names
- 6. Variable Names
- 7. Custom Data Types
- 8. Function Names
- 9. Abbreviations
- 10. Whitespace
- 11. Alignment
- 12. Indentation
- 13. Database Fields
- 14. Efficiency
- 15. Formal Arguments
- 16. Date Format
- 17. Macro Use Policy
- 18. DMA Use Policy
- 19. File Sections
- 20. Documentation
- 20.1. Qualities of Good Documentation
- 20.2. Priorities
- 20.3. Copyright Notice
- 20.4. File’s Header Documentation Block
- 20.5. Domain Vocabulary
- 20.6. Source-File Sections
- 20.7. The Main C File Documents The Project
- 20.8. Clusters
- 20.9. Doxygen Comments
- 20.10. Commenting Out Blocks of Code
- 20.11. Function Definitions
- 20.12. Cross-Reference Pages
- 20.13. Doxygen Use Policy
- 21. Include Policy
- 22. VB.NET and C#
- 23. Appendix A — Design by Contract Details
- 24. Appendix B — Change Log
- 25. Glossary
- 26. Bibliography
Quick-Start for Embedded C Systems:
- 1. Quick-Start Rules for Embedded C Systems
- 1.1. Compiler Warnings
- 1.2. Line Widths
- 1.3. Braces
- 1.4. Parentheses
- 1.5.
const
Keywoard - 1.6.
static
Keyword - 1.7.
volatile
Keyword - 1.8. Comments
- 1.9. Portability
- 1.10. Bit-Wise Operations on Signed Integers
- 1.11. Integer Type Consistency
- 1.12. Ambiguous Meaning of
double
with XC Compilers - 1.13. Comma Operator
- 1.14.
char
Keyword - 1.15. Data Type Names
- 1.16. Structured Code
- 1.17. Subsystems
- 1.18. Shared Code
- 1.19. Indenting Compiler Directives
- 1.20. Code Location
- 1.21. Module Documentation
- 1.22. Use Doxygen Documentation
- 1.23. Things That Happen Once