AUTOSAR-关于配置文件的思考

基于Can:
1. Can_Cfg.h contains compile time configurations. It should be included by Can.h which is specified by AUTOSAR Specification of CAN Driver in Chapter 5.
2. It's also reasonable to move ConfigTypes into a single Can_ConfigTypes.h header file, with Can_Cfg.h only configuration macro definitions and variable declarations.
3. There should be no Can_Lcfg.h and Can_PBcfg.h in the main source tree. But we do not care if there are some of these header files anywhere else.
4. Can_Lcfg.c and Can_PBcfg.c contains only configuration variable definitions and may be compiled separately.
5. Can_Lcfg.c should be compiled alone and linked together within the main building target.
6. Can_PBcfg.c should be compiled alone. The main target only knows its running time plain integer address, and has no compile and link time reference.

转载于:https://www.cnblogs.com/wjcdx/p/8998713.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值