3 of 50 Document I D 040: AUTOSAR_SWS_PortDriver - AUTOSAR confidential - Specification of Port Driver V3.2.0 R4.0 Rev 2 Table of Contents 1 Introduction and functional overview... 6 2 Acronyms and abbreviations ... 8 3 Related documentation......
5.2. PORT driver 6. 功能规格 6.1. 一般行为 6.1.1. 初始化 6.1.2. 去初始化 6.1.3. 转换模式 6.1.4. 触发源(Trigger Source) 6.1.5. 数据访问模式 6.1.6. 优先级 6.1.7. 通知(Notification) 6.1.8. 重入和完整性 6.1.9. 限制检查 6.2. 转换处理和交互 6.2.1. 示例1(多通道/连续转换) 6.2...
请注意,一个DIO通道组应该属于一个DIO端口。 下图标识了DIO驱动程序的功能以及MCAL软件层中PORTDriver和DIO驱动程序的结构。 上图来自于AutoSAR官方文档:AUTOSAR_SWS_DIODriver.pdf 这张图,我建议大家从上往下进行观看: 最上面是IO硬件抽象层IO HW Abstraction Software,在这一层,所有的Mcal IO相关的接口API,会在...
driver.HencethePORTdriverhastobeinitializedpriortotheuseofOCUfunctions. 5.1Filestructure 5.1.1Codefilestructure [SWS_Ocu_00001]⌈Thecodefilestructureshallnotbedefinedcompletelywithin thisspecification.Atthispointitshallbepointedoutthatthecode-filestructureshall includethefollowingfiles -Ocu_Lcfg.c–forlinktime...
我们以一个简单的例子MCU GPIO来说明如何开发基于AUTOSAR标准的驱动软件,首先请自行下载AUTOSAR4.2标准压缩包到本地电脑,并熟悉AUTOSAR文档结构,这次我们主要参考AUTOSAR_SWS_PortDriver.pdf和AUTOSAR_SRS_PortDriver.pdf两个文档。参照这两个文档以及说明开发API接口,数据类型等。在microship 的8位机和NXP的kinetis ...
PortPinDirectionChangeable:Pin的数据方向是否可在运行中改变。 PortPinInitialMode:指定Pin脚的复用模式。用户需要结合手册和所用的驱动功能从下拉选项中选择合适的值。 剩下的配置项可以使用默认值,具体每个配置项的含义可以参考AUTOSAR标准《AUTOSAR_SWS_PortDriver.pdf》。
SW-C之间,或者SW-C与BSW/Complex Device Driver(CDD)之间,通过叫做AUTOSAR Interface的接口来进行连接。另外,SW-C的实际处理,是通过Runnable Entity或者略称为Runnable的要素(相当于C语言里面的函数)来实现的。Runnable除了某些特定的情况以外,都是在OS的任务层级运作而不是在中断程序ISR(Interrupt Service Routine)...
11 of 50 Document ID 020: AUTOSAR_SWS_DIODriver - AUTOSAR confidential - Specification of DIO Driver V2.5.0 R4.0 Rev 3 5 Dependencies to other modules Port Driver Module Many ports and port pins are assigned by the PORT Driver Module to various functionalities as for example: ? General ...
端口(Ports)是属于SWC的一部分,用于SWC之间的通信。 可以分为2种: Sender/Receiver Port 基于数据的端口,传递数据。 Sender:提供数据 Receiver:请求数据 Sender和Receiver之间的数据传输,可以有1:n或者n:1的情况,即一个Sender可以发送数据给多个Receiver,也可以是多个Sender发送数据给同一个Receiver。
#if defined(USE_DEM) // Preinitialize DEM NO_DRIVER(Dem_PreInit(ConfigPtr->DemConfigPtr)); #endif 这里有DEM的预初始化。 初始化的模块: // Preinitialize DEM NO_DRIVER(Dem_PreInit());// Setup Port Port_Init(ConfigPtr->PortConfig);// Setup the GPT Gpt_Init(ConfigPtr->GptConfig); ...