C语言编码规范

驼型

每个单词的首字母大写其余小写,之间无分隔符。

扇入数

函数被调用的上级函数的数目。

扇出数

一个函数直接调用其他函数的数目。

头部文件说明

1
2
3
4
5
6
7
8
9
10
/*****************************************************
*File Name : xx.c
*Copyright : Zhuzhou CSR Times Electric Co.,Ltd. All Rights Reserved.
*Create Date : 2019/4/29
*Description : ....................
*
*REV1.0.0 Xiong 2019/11/28 File Create
*REV1.0.1 LLLL 2019/02/11 Fixed bulk-IN read and poll
*
******************************************************/

函数头部说明

1
2
3
4
5
6
7
/**********************************************************
*Name : UsbSendCR
*Function :
*Para : INT32 arg1, description
* INT32 arg2, description
*REV1.0.0 xiong 2019/4/29 create
*REV1.0.1 xxxx 2019/4/29 Modify packet format
-------------本文结束感谢您的阅读-------------