/**********************************************************************************************************************
* COPYRIGHT
* -------------------------------------------------------------------------------------------------------------------
* \verbatim
* Copyright (c) 2018 by Vector Informatik GmbH. All rights reserved.
*
* This software is copyright protected and proprietary to Vector Informatik GmbH.
* Vector Informatik GmbH grants to you only those rights as set out in the license conditions.
* All other rights remain with Vector Informatik GmbH.
* \endverbatim
* -------------------------------------------------------------------------------------------------------------------
* FILE DESCRIPTION
* -----------------------------------------------------------------------------------------------------------------*/
/** \file Dcm.c
* \brief Implementation of DCM core
*
* \details MICROSAR DCM based on AR 4.0.3
*
*********************************************************************************************************************/
/**********************************************************************************************************************
* REVISION HISTORY
* -------------------------------------------------------------------------------------------------------------------
* Refer to the module's header file.
*
* FILE VERSION
* -------------------------------------------------------------------------------------------------------------------
* Refer to the VERSION CHECK below.
*********************************************************************************************************************/
#define DCM_SOURCE
/* ----------------------------------------------
~&&& Includes
---------------------------------------------- */
/* PRQA S 0857, 0828 EOF */ /* MD_MSR_1.1_857, MD_MSR_1.1_828 */
#include "Dcm.h"
#include "Rte_Dcm.h"
#include "SchM_Dcm.h"
#if ((DCM_UTI_NVM_READ_ENABLED == STD_ON) || \
(DCM_UTI_NVM_WRITE_ENABLED == STD_ON))
# include "NvM.h"
#endif /* ((DCM_UTI_NVM_READ_ENABLED == STD_ON) || \
(DCM_UTI_NVM_WRITE_ENABLED == STD_ON)) */
#if (DCM_DEV_ERROR_REPORT == STD_ON)
# include "Det.h"
#endif /* (DCM_DEV_ERROR_REPORT == STD_ON) */
#include "PduR_Dcm.h"
#include "ComM_Dcm.h"
#if (((DCM_MODE_ECU_RESET_ENABLED == STD_ON) || (DCM_MODE_RPD_SHTDWN_ENABLED == STD_ON)) && (DCM_BSW_ENV_ASR_VERSION_3XX_ENABLED == STD_ON) || \
(DCM_DIAG_NOTIF_BSWM_APPL_UPDATED_ENABLED == STD_ON) || \
(DCM_SVC_28_SUPPORT_ENABLED == STD_ON))
# include "BswM_Dcm.h"
#endif /* (((DCM_MODE_ECU_RESET_ENABLED == STD_ON) || (DCM_MODE_RPD_SHTDWN_ENABLED == STD_ON)) && (DCM_BSW_ENV_ASR_VERSION_3XX_ENABLED == STD_ON) || \
(DCM_DIAG_NOTIF_BSWM_APPL_UPDATED_ENABLED == STD_ON) || \
(DCM_SVC_28_SUPPORT_ENABLED == STD_ON)) */
#if (DCM_VARMGR_MODE_POSTBUILD_LOAD_ENABLED == STD_ON)
# include "EcuM_Error.h"
#endif /* (DCM_VARMGR_MODE_POSTBUILD_LOAD_ENABLED == STD_ON) */
#if (((DCM_SVC_02_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_03_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_04_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_07_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_0A_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_14_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_19_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_85_SUPPORT_ENABLED == STD_ON)) && ((DCM_DEM_API_403_ENABLED == STD_ON) || (DCM_DEM_API_430_ENABLED == STD_ON))) /* COV_DCM_SUPPORT_PARTIALLY TF tf tf tf tf tf tf tf tf xf tf */
# include "Dem.h"
#endif /* (((DCM_SVC_02_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_03_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_04_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_07_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_0A_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_14_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_19_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_85_SUPPORT_ENABLED == STD_ON)) && ((DCM_DEM_API_403_ENABLED == STD_ON) || (DCM_DEM_API_430_ENABLED == STD_ON))) */
#if (((DCM_SVC_02_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_03_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_04_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_07_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_0A_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_14_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_19_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_85_SUPPORT_ENABLED == STD_ON)) && ((DCM_DEM_API_412_ENABLED == STD_ON) || (DCM_DEM_API_421_ENABLED == STD_ON) || (DCM_DEM_API_430_ENABLED == STD_ON)))
# include "Dem_Dcm.h"
#endif /* (((DCM_SVC_02_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_03_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_04_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_07_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_0A_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_14_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_19_SUPPORT_ENABLED == STD_ON) || \
(DCM_SVC_85_SUPPORT_ENABLED == STD_ON)) && ((DCM_DEM_API_412_ENABLED == STD_ON) || (DCM_DEM_API_421_ENABLED == STD_ON) || (DCM_DEM_API_430_ENABLED == STD_ON))) */
#include "Dcm_Int.h"
/* ----------------------------------------------
~&&& Versions
---------------------------------------------- */
#if ((DCM_SW_MAJOR_VERSION != 10u) || \
(DCM_SW_MINOR_VERSION != 4u) || \
(DCM_SW_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm.h are inconsistent"
#endif
#if ((DCM_CBK_MAJOR_VERSION != 10u) || \
(DCM_CBK_MINOR_VERSION != 4u) || \
(DCM_CBK_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_Cbk.h are inconsistent"
#endif
#if ((DCM_TYPES_MAJOR_VERSION != 10u) || \
(DCM_TYPES_MINOR_VERSION != 4u) || \
(DCM_TYPES_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_Types.h are inconsistent"
#endif
#if ((DCM_INT_MAJOR_VERSION != 10u) || \
(DCM_INT_MINOR_VERSION != 4u) || \
(DCM_INT_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_Int.h are inconsistent"
#endif
#if ((DCM_BASE_MAJOR_VERSION != 10u) || \
(DCM_BASE_MINOR_VERSION != 4u) || \
(DCM_BASE_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_Base.h are inconsistent"
#endif
#if ((DCM_BASECBK_MAJOR_VERSION != 10u) || \
(DCM_BASECBK_MINOR_VERSION != 4u) || \
(DCM_BASECBK_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_BaseCbk.h are inconsistent"
#endif
#if ((DCM_BASETYPES_MAJOR_VERSION != 10u) || \
(DCM_BASETYPES_MINOR_VERSION != 4u) || \
(DCM_BASETYPES_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_BaseTypes.h are inconsistent"
#endif
#if ((DCM_BASEINT_MAJOR_VERSION != 10u) || \
(DCM_BASEINT_MINOR_VERSION != 4u) || \
(DCM_BASEINT_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_BaseInt.h are inconsistent"
#endif
#if ((DCM_CORE_MAJOR_VERSION != 10u) || \
(DCM_CORE_MINOR_VERSION != 4u) || \
(DCM_CORE_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_Core.h are inconsistent"
#endif
#if ((DCM_CORECBK_MAJOR_VERSION != 10u) || \
(DCM_CORECBK_MINOR_VERSION != 4u) || \
(DCM_CORECBK_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_CoreCbk.h are inconsistent"
#endif
#if ((DCM_CORETYPES_MAJOR_VERSION != 10u) || \
(DCM_CORETYPES_MINOR_VERSION != 4u) || \
(DCM_CORETYPES_PATCH_VERSION != 0u))
# error "Vendor specific version numbers of Dcm.c and Dcm_CoreTypes.h are inconsistent"
#endif
#if ((DCM_COREINT_MAJOR_VERSION != 10u) || \
(DCM_COREINT_MINOR_VERSION != 4u) || \
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
代码工程 基于tc165的 (1970个子文件)
S32K144_GCC.args 7KB
Fls.args 4KB
Dio.args 4KB
Port.args 4KB
Mcu.args 4KB
NmCdd.args 4KB
Spi.args 4KB
dcmcdd.args 4KB
sbc_uja116x.args 4KB
main.args 4KB
EcuM.args 4KB
CanTrcv_30_GenericCan.args 4KB
Can.args 4KB
CanSM.args 4KB
CanTp.args 4KB
BswM.args 4KB
Fee.args 4KB
ComM.args 4KB
Det.args 4KB
CanNm.args 4KB
CanIf.args 4KB
Crc.args 4KB
NvM.args 4KB
MemIf.args 4KB
vstdlib.args 4KB
PduR.args 4KB
Os_AccessCheck.args 4KB
Com.args 4KB
Dem.args 4KB
Dcm.args 4KB
Nm.args 4KB
AppCom_Rx.args 4KB
Dio_Cfg.args 4KB
BswM_Lcfg.args 4KB
startup.args 4KB
Os_Hal_Compiler_TiInt.args 404B
Os_Hal_EntryAsm_Lcfg.args 404B
startup_S32K144.args 404B
Rte_Needs.ecuc.arxml 136KB
Os_Hal_Compiler_TiInt.asm 6KB
Os_Hal_EntryAsm_Lcfg.asm 3KB
Os_Hal_ContextAsm.asm 2KB
Dcm.c 2.29MB
Com.c 844KB
Os_Trap.c 533KB
Can.c 469KB
Fls_Qspi.c 419KB
Fee_Processing.c 417KB
CanIf.c 376KB
CanTp.c 346KB
Can_Flexcan.c 345KB
NmOsek.c 285KB
ComM.c 282KB
Eth_Enet.c 252KB
Nm.c 250KB
CanNm.c 239KB
Spi_LPspi.c 230KB
Adc.c 221KB
Fee.c 214KB
EcuM.c 206KB
Os_Ioc.c 203KB
CanSM.c 201KB
WdgM.c 192KB
BswM.c 185KB
Os_ScheduleTable.c 182KB
Fls_Flash.c 171KB
Os_Core.c 161KB
Pwm_Ftm.c 157KB
Pwm.c 152KB
Com_Lcfg.c 145KB
J1939Rm.c 145KB
Os_XSignal.c 141KB
Eep.c 139KB
Dcm_Ext.c 139KB
Fls.c 137KB
Icu.c 133KB
PduR_Bm.c 132KB
Dem.c 130KB
CDD_Mcl.c 127KB
Rte.c 127KB
Spi.c 124KB
I2c_LPI2C.c 117KB
Can.c 115KB
RamTst.c 113KB
Mcl_Dma_Irq.c 108KB
NvM_Act.c 106KB
I2c_FlexIO.c 105KB
PduR_RmIf.c 104KB
Icu_Ftm.c 103KB
Lin_LPUART.c 101KB
J1939Tp_Cmdt.c 100KB
Ftm_Common.c 99KB
Adc_Adc12bsarv2.c 99KB
SchM_Gpt.c 98KB
SchM_Pwm.c 98KB
SchM_Mcl.c 98KB
SchM_Adc.c 98KB
PduR.c 97KB
Os_ServiceFunction.c 97KB
Eth.c 91KB
共 1970 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
2401_85966999
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- TestBank.java
- js-leetcode题解之146-lru-cache.js
- js-leetcode题解之145-binary-tree-postorder-traversal.js
- js-leetcode题解之144-binary-tree-preorder-traversal.js
- js-leetcode题解之143-reorder-list.js
- js-leetcode题解之142-linked-list-cycle-ii.js
- js-leetcode题解之141-linked-list-cycle.js
- js-leetcode题解之140-word-break-ii.js
- js-leetcode题解之139-word-break.js
- js-leetcode题解之138-copy-list-with-random-pointer.js
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功