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.
posted @ 2018-05-06 16:50  wjcdx  阅读(1606)  评论(0编辑  收藏  举报