Method for increasing transportability of AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code
A driver code and portability technology, applied in the direction of program startup/switching, multi-program device, etc., can solve the problems of complicated driver module transplantation process, weak code reusability, long module development cycle, etc., to maintain scalability performance, shorten the development cycle, and reduce the effect of transplantation workload
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0023] The traditional AUTOSAR OS MCAL driver usually implements all codes in one file, and the interface function conforming to the AUTOSAR standard is named Module_Function.
[0024] Divide the original AUTOSAR OS MCAL driver code structure into two layers, Module.c and Module_Hw.c. Module.c is mainly responsible for the implementation related to the AUTOSAR standard interface, and Module_Hw.c is mainly responsible for the implementation related to the specific hardware platform.
[0025] (1) The Module.c file implements the Module_Function function that complies with the AUTOSAR standard. It internally performs standard error checking and maintains some global variables, and is responsible for calling the Module_Hw.c code layer.
[0026] (2), the Module_Hw.c file implements the specific interface function called by Module.c. This layer is m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 