/*
***********************************************************************************************************************
* 
* Product Info
* Isolar version: ISOLAR-AB 4.0.2
* Product release version: RTA-BSW 3.1.0
* 
***********************************************************************************************************************
*/



/*
***************************************************************************************************
*                                   Includes
***************************************************************************************************
*/
#include "EcuM.h" /*BSW_HeaderInc_002*/

#include "Mcu.h"
#if (!defined(MCU_AR_RELEASE_MAJOR_VERSION) || (MCU_AR_RELEASE_MAJOR_VERSION != 4))
	#error "AUTOSAR major version undefined or mismatched"
#endif
#if (!defined(MCU_AR_RELEASE_MINOR_VERSION) || (MCU_AR_RELEASE_MINOR_VERSION != 2))
	#error "AUTOSAR minor version undefined or mismatched"
#endif
#include "ComM.h"
#if (!defined(COMM_AR_RELEASE_MAJOR_VERSION) || (COMM_AR_RELEASE_MAJOR_VERSION != 4))
	#error "AUTOSAR major version undefined or mismatched"
#endif
#if (!defined(COMM_AR_RELEASE_MINOR_VERSION) || (COMM_AR_RELEASE_MINOR_VERSION != 2))
	#error "AUTOSAR minor version undefined or mismatched"
#endif
/****************************************************************************************************
 *                                   CONFIGURATION PARAMETERS
 ***************************************************************************************************/
/*The structure remains same as EcuM3.x implementation. ResetReason has to be acquired from Mcu configuration*/
/*************************************************************************************************
Container Name    : EcuMWakeupSource
Description       : Contains all the Pre Compile Parameters related to WakeupSource container.
****************************************************************************************************/


#define ECUM_START_SEC_CONST_8
#include "EcuM_Cfg_MemMap.h"


#define ECUM_STOP_SEC_CONST_8
#include "EcuM_Cfg_MemMap.h"

#define ECUM_START_SEC_CONST_UNSPECIFIED
#include "EcuM_Cfg_MemMap.h"

CONST( EcuM_Cfg_dataWkupPNCRefStruct_tst,  ECUM_CONST)  EcuM_Cfg_dataWkupPNCRef_cast[ECUM_NUM_OF_WKP_SOURCES]=
{
    { 0      ,   NULL_PTR },
    { 0      ,   NULL_PTR },
    { 0      ,   NULL_PTR },
    { 0      ,   NULL_PTR },
    { 0      ,   NULL_PTR }
};


CONST( EcuM_Cfg_dataWkupSrcStruct_tst,  ECUM_CONST)  EcuM_Cfg_idxWakeupSourcesPC_au32[ECUM_NUM_OF_WKP_SOURCES] =
{/*IsComChannelPresent,       ComChannelReferance,                     ResetReason,             ValidationTimeout,   IsWakeupSourcePolling,                WakeupSourceId                         */
{      FALSE          ,       255                                   ,  MCU_RESET_UNDEFINED   ,         0         ,        FALSE  ,              EcuMConf_EcuMWakeupSource_ECUM_WKSOURCE_POWER},
{      FALSE          ,       255                                   ,  MCU_RESET_UNDEFINED   ,         0         ,        FALSE  ,              EcuMConf_EcuMWakeupSource_ECUM_WKSOURCE_RESET},
{      FALSE          ,       255                                   ,  MCU_RESET_UNDEFINED   ,         0         ,        FALSE  ,              EcuMConf_EcuMWakeupSource_ECUM_WKSOURCE_INTERNAL_RESET},
{      FALSE          ,       255                                   ,  MCU_RESET_UNDEFINED   ,         0         ,        FALSE  ,              EcuMConf_EcuMWakeupSource_ECUM_WKSOURCE_INTERNAL_WDG},
{      FALSE          ,       255                                   ,  MCU_RESET_UNDEFINED   ,         0         ,        FALSE  ,              EcuMConf_EcuMWakeupSource_ECUM_WKSOURCE_EXTERNAL_WDG}
};

#if ECUM_SLEEP_SUPPORT_ENABLE
/*********************************************************************************************************************
Container Name    : EcuMSleepMode
Description       : Contains all the Pre Compile Parameters related to SleepModes container
*********************************************************************************************************************/

CONST( EcuM_Cfg_dataSleepModeStruct_tst,  ECUM_CONST)  EcuM_Cfg_idxSleepModes_au32[ECUM_CFG_NUM_SLEEP_MODES]=
{/*    IsCPUSuspend   ,   EquivalentMcuMode  ,     WakeupSourceMask */

};
#endif
#define ECUM_STOP_SEC_CONST_UNSPECIFIED
#include "EcuM_Cfg_MemMap.h"



#define ECUM_START_SEC_CONST_16
#include "EcuM_Cfg_MemMap.h"

/*************************************************************************************************
Container Name    : EcuMGoDownAllowedUsers
Description       : Contains Module ID's configured for calling EcuM_GoDown
****************************************************************************************************/
CONST( uint16,  ECUM_CONST)  EcuM_Cfg_idxGoDownValidCallerArr_au16[ECUM_CFG_GODOWN_CALLER_ARR_LEN]  =
{
    0
};





#define ECUM_STOP_SEC_CONST_16
#include "EcuM_Cfg_MemMap.h"

