为快速高效地开发稳定的符合汽车开放系统架构(AUTOSAR)规范的底层驱动,从底层驱动接口标准、参数配置接口、错误处理机制等方面研究符合AUTOSAR规范的底层驱动设计开发方法,并以CAN驱动的开发为例验证该方法的可行性.测试结果表明,利用该方法开发的驱动程序能有效捕获CAN控制器运行时发生的错误,并抛出相应的异常和激活相应的异常处理程序,从而可降低驱动错误对上层系统稳定性的影响.%In order to develop a stable driver according with AUTOSAR specification quickly and effectively, this paper proposes design and implementation procedure for the driver from the standard of driver interface, parameter configuration interface, error handling and so on. The feasibility and effectiveness of the procedure are verified by the development of CAN driver. Test results show that the CAN driver developed by the procedure can capture effectively the runtime errors of CAN controller and active the appropriate exception handler. So it can bring less effect to the stability of upper-level system.
展开▼