Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
简化了条件注释中断部分代码的宏开关
统一自定义类型
大小写
及_t
后缀将多组宏定义分组并改换成枚举类型
调整枚举类型变量的命名中相同字段所处的位置,例如将
J1939_CONTROL_BYTE_
提前,方便编辑器快速联想同类型变量将不同CAN节点的相关全局变量使用数组进行管理,去除了多个
switch()
代码段所造成的代码重复性高的问题,减少了Flash占用,增强了可扩展更多CAN节点的可能性,同时增加代码灵活性,尽量避免增减节点时对协议栈主源文件的大量改动注释统一使用 MISRA-C 的标准 C 注释:
/* Comment */
缩进统一使用空格缩进,避免不同编辑器缩进量差异
将本段版本历史记录信息从各个源文件中提取出来,单独存放于
CHANGELOG
文件中@XeiTongXueFlyMe
Signed-off-by: Yujia Chen [email protected]