/********************************************************************************************************************** * COPYRIGHT * ------------------------------------------------------------------------------------------------------------------- * \verbatim * * 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 * ------------------------------------------------------------------------------------------------------------------- * LICENSE * ------------------------------------------------------------------------------------------------------------------- * Module: EcuM * Program: MSR_Vector_SLP4 * Customer: Marelli Automotive Components (Wuhu) Co., Ltd. * Expiry Date: Not restricted * Ordered Derivat.: TC377TP * License Scope : The usage is restricted to CBD2201205_D03 * * ------------------------------------------------------------------------------------------------------------------- * FILE DESCRIPTION * ------------------------------------------------------------------------------------------------------------------- * File: EcuM_Cfg.c * Generation Time: 2023-12-21 20:29:07 * Project: CBD2200592_D00_demo - Version 1.0 * Delivery: CBD2201205_D03 * Tool Version: DaVinci Configurator Classic 5.26.35 SP2 * * *********************************************************************************************************************/ /*********************************************************************************************************************** * INCLUDES **********************************************************************************************************************/ /* PRQA S 0310 EOF */ /* MD_CSL_0310 */ #include "EcuM_Cbk.h" #define ECUM_PRIVATE_CFG_PARTLY_INCLUDE #include "EcuM_PrivateCfg.h" #undef ECUM_PRIVATE_CFG_PARTLY_INCLUDE /* PRQA S 0841 */ /* MD_EcuM_0841 */ #if((ECUM_CHANNELOFCOMMCHANNELREFS == STD_ON) || (ECUM_PNCOFCOMMPNCREFS == STD_ON) || (ECUM_SUPPORT_COMM == STD_ON)) #include "ComM.h" #endif #if !defined (ECUM_LOCAL) /* COV_ECUM_LOCAL */ # define ECUM_LOCAL static #endif #if !defined (ECUM_LOCAL_INLINE) /* COV_ECUM_LOCAL_INLINE */ # define ECUM_LOCAL_INLINE LOCAL_INLINE #endif /********************************************************************************************************************** * LOCAL DATA PROTOTYPES **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: LOCAL DATA PROTOTYPES **********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: LOCAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** * GLOBAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: GLOBAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** EcuM_ComMChannelRefs **********************************************************************************************************************/ /** \var EcuM_ComMChannelRefs \brief Referenced ComM Channel(s). \details Element Description Channel Referenced ComM Channel(s) per WakeupSource */ #define ECUM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(EcuM_ComMChannelRefsType, ECUM_CONST) EcuM_ComMChannelRefs[3] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index Channel Comment Referable Keys */ { /* 0 */ ComMConf_ComMChannel_CN_HH_VC1_SubCAN_Matrix_R1_b9005abb }, /* [CN_HH_VC1_SubCAN_Matrix_R1_b9005abb] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_HH_VC1_SubCAN_Matrix_R1_b9005abb, CN_HH_VC1_SubCAN_Matrix_R1_b9005abb] */ { /* 1 */ ComMConf_ComMChannel_CN_VC1_BDCAN2_157cf666 }, /* [CN_VC1_BDCAN2_157cf666] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_VC1_BDCAN2_157cf666, CN_VC1_BDCAN2_157cf666] */ { /* 2 */ ComMConf_ComMChannel_CN_VC1_BDCAN2_157cf666 } /* [ECUM_WKSOURCE_KL15] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_KL15, ECUM_WKSOURCE_KL15] */ }; #define ECUM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_DriverInitOne **********************************************************************************************************************/ /** \var EcuM_DriverInitOne \details Element Description Function */ #define ECUM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(EcuM_DriverInitOneType, ECUM_CONST) EcuM_DriverInitOne[1] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index Function */ { /* 0 */ EcuM_AL_DriverInitOne } }; #define ECUM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_WakeupSourceList **********************************************************************************************************************/ /** \var EcuM_WakeupSourceList \brief Contains all parameters configured for Wakeup Sources \details Element Description Polling Wakeup source will be polled in polling mode if value is TRUE CheckWakeupTime Timeout for Check Wakeup Validation - if 0 no Validation is performed ComMChannelRefsEndIdx the end index of the 0:n relation pointing to EcuM_ComMChannelRefs ComMChannelRefsStartIdx the start index of the 0:n relation pointing to EcuM_ComMChannelRefs ValidationTime Timeout for Wakeup Validation - if 0 no Validation is performed */ #define ECUM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(EcuM_WakeupSourceListType, ECUM_CONST) EcuM_WakeupSourceList[8] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index Polling CheckWakeupTime ComMChannelRefsEndIdx ComMChannelRefsStartIdx ValidationTime Comment Referable Keys */ { /* 0 */ FALSE, 0u, ECUM_NO_COMMCHANNELREFSENDIDXOFWAKEUPSOURCELIST, ECUM_NO_COMMCHANNELREFSSTARTIDXOFWAKEUPSOURCELIST, 0u }, /* [ECUM_WKSOURCE_POWER] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_POWER, ECUM_WKSOURCE_POWER] */ { /* 1 */ FALSE, 0u, ECUM_NO_COMMCHANNELREFSENDIDXOFWAKEUPSOURCELIST, ECUM_NO_COMMCHANNELREFSSTARTIDXOFWAKEUPSOURCELIST, 0u }, /* [ECUM_WKSOURCE_RESET] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_RESET, ECUM_WKSOURCE_RESET] */ { /* 2 */ FALSE, 0u, ECUM_NO_COMMCHANNELREFSENDIDXOFWAKEUPSOURCELIST, ECUM_NO_COMMCHANNELREFSSTARTIDXOFWAKEUPSOURCELIST, 0u }, /* [ECUM_WKSOURCE_INTERNAL_RESET] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_INTERNAL_RESET, ECUM_WKSOURCE_INTERNAL_RESET] */ { /* 3 */ FALSE, 0u, ECUM_NO_COMMCHANNELREFSENDIDXOFWAKEUPSOURCELIST, ECUM_NO_COMMCHANNELREFSSTARTIDXOFWAKEUPSOURCELIST, 0u }, /* [ECUM_WKSOURCE_INTERNAL_WDG] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_INTERNAL_WDG, ECUM_WKSOURCE_INTERNAL_WDG] */ { /* 4 */ FALSE, 0u, ECUM_NO_COMMCHANNELREFSENDIDXOFWAKEUPSOURCELIST, ECUM_NO_COMMCHANNELREFSSTARTIDXOFWAKEUPSOURCELIST, 0u }, /* [ECUM_WKSOURCE_EXTERNAL_WDG] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_EXTERNAL_WDG, ECUM_WKSOURCE_EXTERNAL_WDG] */ { /* 5 */ FALSE, 0u, 1u, 0u, 0u }, /* [CN_HH_VC1_SubCAN_Matrix_R1_b9005abb] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_HH_VC1_SubCAN_Matrix_R1_b9005abb, CN_HH_VC1_SubCAN_Matrix_R1_b9005abb] */ { /* 6 */ TRUE, 200u, 2u, 1u, 200u }, /* [CN_VC1_BDCAN2_157cf666] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_VC1_BDCAN2_157cf666, CN_VC1_BDCAN2_157cf666] */ { /* 7 */ FALSE, 200u, 3u, 2u, 200u } /* [ECUM_WKSOURCE_KL15] */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_KL15, ECUM_WKSOURCE_KL15] */ }; #define ECUM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_BswMCurrentModuleState **********************************************************************************************************************/ #define ECUM_START_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_StateType, ECUM_VAR_NO_INIT) EcuM_BswMCurrentModuleState; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_BswMRequestedModuleState **********************************************************************************************************************/ #define ECUM_START_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_StateType, ECUM_VAR_NO_INIT) EcuM_BswMRequestedModuleState; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_ModuleState **********************************************************************************************************************/ #define ECUM_START_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_StateType, ECUM_VAR_NO_INIT) EcuM_ModuleState; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_PostRunRequestCounter **********************************************************************************************************************/ #define ECUM_START_SEC_VAR_NO_INIT_8 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_PostRunRequestCounterType, ECUM_VAR_NO_INIT) EcuM_PostRunRequestCounter; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_8 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_RunRequestCounter **********************************************************************************************************************/ #define ECUM_START_SEC_VAR_NO_INIT_8 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_RunRequestCounterType, ECUM_VAR_NO_INIT) EcuM_RunRequestCounter; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_8 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_UserTable **********************************************************************************************************************/ /** \var EcuM_UserTable \brief Contains a field for every configured EcuM User */ #define ECUM_START_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_UserType, ECUM_VAR_NO_INIT) EcuM_UserTable[1]; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define ECUM_STOP_SEC_VAR_NO_INIT_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** EcuM_ValidationTimeoutTable **********************************************************************************************************************/ /** \var EcuM_ValidationTimeoutTable \brief Validation Timeout Table */ #define ECUM_START_SEC_VAR_NO_INIT_16 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(EcuM_ValidationTimeoutTableType, ECUM_VAR_NO_INIT) EcuM_ValidationTimeoutTable[8]; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index Referable Keys */ /* 0 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_POWER, ECUM_WKSOURCE_POWER] */ /* 1 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_RESET, ECUM_WKSOURCE_RESET] */ /* 2 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_INTERNAL_RESET, ECUM_WKSOURCE_INTERNAL_RESET] */ /* 3 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_INTERNAL_WDG, ECUM_WKSOURCE_INTERNAL_WDG] */ /* 4 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_EXTERNAL_WDG, ECUM_WKSOURCE_EXTERNAL_WDG] */ /* 5 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_HH_VC1_SubCAN_Matrix_R1_b9005abb, CN_HH_VC1_SubCAN_Matrix_R1_b9005abb] */ /* 6 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/CN_VC1_BDCAN2_157cf666, CN_VC1_BDCAN2_157cf666] */ /* 7 */ /* [/ActiveEcuC/EcuM/EcuMConfiguration/EcuMCommonConfiguration/ECUM_WKSOURCE_KL15, ECUM_WKSOURCE_KL15] */ #define ECUM_STOP_SEC_VAR_NO_INIT_16 /*lint -save -esym(961, 19.1) */ #include "EcuM_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: GLOBAL FUNCTIONS **********************************************************************************************************************/