General Specification of Basic Software Modules
AUTOSAR Release 4.2.1
3 of 84 Document ID 578: AUTOSAR_SWS_BSWGeneral
- AUTOSAR confidential -
Table of Contents
1 Introduction and functional overview ................................................................... 5
1.1 Traceability ................................................................................................... 5
1.2 Document conventions ................................................................................. 5
2 Acronyms and abbreviations ............................................................................... 7
3 Related documentation........................................................................................ 8
3.1 Input documents ........................................................................................... 8
3.2 Related standards and norms ...................................................................... 9
4 Constraints and assumptions ............................................................................ 10
4.1 Limitations .................................................................................................. 10
4.2 Applicability to car domains ........................................................................ 10
5 Dependencies to other modules ........................................................................ 11
5.1 File structure .............................................................................................. 11
5.1.1 Module implementation prefix ............................................................... 11
5.1.2 Module implementation files.................................................................. 12
5.1.3 Imported and exported information ....................................................... 13
5.1.4 BSW Module Description ...................................................................... 14
5.1.5 Module documentation .......................................................................... 14
5.1.6 Code file structure ................................................................................. 15
5.1.7 Header file structure .............................................................................. 19
5.1.8 Version check ....................................................................................... 25
6 Requirements traceability .................................................................................. 26
7 Functional specification ..................................................................................... 34
7.1 General implementation specification ......................................................... 34
7.1.1 Conformance to MISRA C .................................................................... 34
7.1.2 Conformance to AUTOSAR Basic Software Requirements .................. 34
7.1.3 Conformance to AUTOSAR Methodology ............................................. 34
7.1.4 Platform independency and compiler abstraction ................................. 35
7.1.5 Configurability ....................................................................................... 37
7.1.6 Various naming conventions ................................................................. 38
7.1.7 Configuration parameters ..................................................................... 39
7.1.8 Shared code.......................................................................................... 40
7.1.9 Global data ........................................................................................... 40
7.1.10 Usage of macros and inline functions ................................................ 41
7.1.11 Calling Scheduled functions (Main processing functions) .................. 41
7.1.12 Exclusive areas ................................................................................. 41
7.1.13 Callouts .............................................................................................. 42
7.1.14 AUTOSAR Interfaces ......................................................................... 43
7.1.15 Interrupt service routines ................................................................... 43
7.1.16 Restricted OS functionality access .................................................... 44
7.1.17 Access to hardware registers ............................................................ 46
7.1.18 Debugging support ............................................................................ 47
评论0