没有合适的资源?快使用搜索试试~ 我知道了~
AUTOSAR_SWS_BSWGeneral
需积分: 19 9 下载量 147 浏览量
2020-12-23
10:13:23
上传
评论
收藏 1.3MB PDF 举报
温馨提示
试读
84页
AUTOSAR
资源详情
资源评论
资源推荐
General Specification of Basic Software Modules
AUTOSAR Release 4.2.1
1 of 84 Document ID 578: AUTOSAR_SWS_BSWGeneral
- AUTOSAR confidential -
Document Title
General Specification of Basic
Software Modules
Document Owner
AUTOSAR
Document Responsibility
AUTOSAR
Document Identification No
578
Document Classification
Standard
Document Status
Final
Part of AUTOSAR Release
4.2.1
Document Change History
Release
Changed by
Change Description
4.2.1
AUTOSAR
Release
Management
Update in error handling classification
Update in initialization function requirements
Updated due to
SupportForPBLAndPBSECUConfiguration
concept
minor corrections / clarifications / editorial
changes; For details please refer to the
BWCStatement
4.1.3
AUTOSAR
Release
Management
Update of include file structure and required
header files requirement specification
Update of inter-module version check –
removed REVISION/PATCH_VERSION from
the required check
Formating and spelling corrections
4.1.2
AUTOSAR
Release
Management
Moved declarations of MainFunctions and
BswModuleClientServerEntrys from the module
header files to RTE/BswScheduler
Modified the Published Information definitions
Added the NULL pointer checking mechanism
description
Removed the "Fixed cyclic", "Variable cyclic"
and "On pre condition" from the Scheduled
Functions description
Editorial changes
4.1.1
AUTOSAR
Administration
Initial release
General Specification of Basic Software Modules
AUTOSAR Release 4.2.1
2 of 84 Document ID 578: AUTOSAR_SWS_BSWGeneral
- AUTOSAR confidential -
Disclaimer
This specification and the material contained in it, as released by AUTOSAR, is for
the purpose of information only. AUTOSAR and the companies that have contributed
to it shall not be liable for any use of the specification.
The material contained in this specification is protected by copyright and other types
of Intellectual Property Rights. The commercial exploitation of the material contained
in this specification requires a license to such Intellectual Property Rights.
This specification may be utilized or reproduced without any modification, in any form
or by any means, for informational purposes only.
For any other purpose, no part of the specification may be utilized or reproduced, in
any form or by any means, without permission in writing from the publisher.
The AUTOSAR specifications have been developed for automotive applications only.
They have neither been developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Advice for users
AUTOSAR specifications may contain exemplary items (exemplary reference
models, "use cases", and/or references to exemplary technical solutions, devices,
processes or software).
Any such exemplary items are contained in the specifications for illustration purposes
only, and they themselves are not part of the AUTOSAR Standard. Neither their
presence in such specifications, nor any later documentation of AUTOSAR
conformance of products actually implementing such exemplary items, imply that
intellectual property rights covering such exemplary items are licensed under the
same rules as applicable to the AUTOSAR Standard.
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
General Specification of Basic Software Modules
AUTOSAR Release 4.2.1
4 of 84 Document ID 578: AUTOSAR_SWS_BSWGeneral
- AUTOSAR confidential -
7.1.19 Data types ......................................................................................... 47
7.1.20 Distributed execution on multi-partitioned systems ............................ 50
7.2 Error Handling ............................................................................................ 51
7.2.1 Classification ......................................................................................... 51
7.2.2 Development errors .............................................................................. 51
7.2.3 Runtime errors ...................................................................................... 54
7.2.4 Transient faults ..................................................................................... 55
7.2.5 Extended production errors and production errors ................................ 56
7.2.6 Specific topics ....................................................................................... 60
8 API specification ................................................................................................ 62
8.1 Imported types............................................................................................ 62
8.2 Type definitions .......................................................................................... 62
8.3 Function definitions .................................................................................... 63
8.3.1 General specification on API functions ................................................. 63
8.3.2 Initialization function .............................................................................. 66
8.3.3 De-Initialization function ........................................................................ 67
8.3.4 Get Version Information ........................................................................ 68
8.4 Callback notifications .................................................................................. 70
8.5 Scheduled functions ................................................................................... 71
8.6 Expected Interfaces .................................................................................... 72
8.6.1 Mandatory Interfaces ............................................................................ 72
8.6.2 Optional Interfaces ................................................................................ 72
8.6.3 Configurable interfaces ......................................................................... 72
9 Sequence diagrams .......................................................................................... 73
10 Configuration specification ................................................................................ 74
10.1 Introduction to configuration specification .................................................. 74
10.1.1 Configuration and configuration parameters ...................................... 74
10.1.2 Variants ............................................................................................. 74
10.1.3 Containers ......................................................................................... 75
10.1.4 Configuration parameter tables ......................................................... 75
10.1.5 Configuration class labels .................................................................. 76
10.2 General configuration specification ............................................................ 77
10.2.1 Configuration files .............................................................................. 77
10.2.2 Implementation names for configuration parameters ......................... 77
10.2.3 Pre-compile time configuration .......................................................... 78
10.2.4 Link time configuration ....................................................................... 79
10.2.5 Post-build time configuration ............................................................. 79
10.2.6 Configuration variants ........................................................................ 81
10.3 Published Information ................................................................................. 82
General Specification of Basic Software Modules
AUTOSAR Release 4.2.1
5 of 84 Document ID 578: AUTOSAR_SWS_BSWGeneral
- AUTOSAR confidential -
1 Introduction and functional overview
This document is the general basic software specification on AUTOSAR Basic
Software modules. It complements the specification of BSW modules with as a
common specification, which is valid for various BSW modules.
1.1 Traceability
The Specification items from this document describe the work products from the
BSW Module implementation or their parts with regard to the Basic Software
Requirements, which are described in AUTOSAR General Requirements on Basic
Software Modules [3].
For every BSW Module, the traceability between Specification items and Basic
Software Requirements is in scope of this document and the according BSW Module
Software Specification. See also chapter 6 - Requirements traceability.
The BSW Module implementation must guarantee traceability to the corresponding
Specification items of this document and of the corresponding BSW Module
specification.
Some Specification items are not applicable to every BSW Module. In such a case,
its description explicitly mentions the condition for its applicability. If no condition is
mentioned, the Specification item is applicable for all BSW Modules.
Please refer to AUTOSAR Standardization Template [14], chapter “Support for
traceability” for further information.
1.2 Document conventions
Code examples, symbols and other technical terms in general are typeset in
monospace font, e.g. const.
Terms and expressions defined in AUTOSAR Glossary [7], within this specification
(see chapter 2 - Acronyms and abbreviations) or in related documentation are
typeset in italic font, e.g. Module implementation prefix.
The Basic Software Requirements are described in document SRS BSW General [3].
These are referenced using SRS_BSW_<n> where <n> is its requirement id. For
instance: SRS_BSW_00009.
Every Specification item starts with [SWS_BSW_<nr>], where <nr> is its unique
identifier number of the Specification item. This number is followed by the
Specification item title. The scope of the Specification item description is marked with
half brackets and is followed by the list of related requirements from SRS BSW
General, between braces.
剩余83页未读,继续阅读
Flying_Dan
- 粉丝: 158
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0