WL818_SDK/coding_rule.txt

23 lines
702 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1、SDK变量命名延续原SDK的下划线命名法不使用驼峰命名法
2、编码格式使用UTF-8
3、if判断相等时变量放在右值
4、对外接口必须检测入口参数
5、单一语句需内联
6、硬件操作相关变量定义需防优化
WL818_SDK
├─compile
├─fw2flash
├─link
├─output
├─pgm
└─src
├─.vs
├─code //用户app
│ └─project_case
│ └─RM692H5_120HZ_DSC3_1
├─driver //驱动层,对内封装寄存器地址
│ ├─include
│ ├─source
│ └─ulog
└─include //对外头文件hal和common定义