2 * Configuration of module: EcuM (EcuM_PBcfg.c)
\r
7 * Configured for (MCU): MPC551x
\r
9 * Module vendor: ArcCore
\r
10 * Generator version: 2.1.10
\r
12 * Generated by Arctic Studio (http://arccore.com)
\r
17 #include "EcuM_Generated_Types.h"
\r
19 #if defined(USE_CANSM)
\r
20 extern const CanSM_ConfigType CanSM_Config;
\r
23 extern const Nm_ConfigType Nm_Config;
\r
25 #if defined(USE_CANNM)
\r
26 extern const CanNm_ConfigType CanNm_Config;
\r
28 #if defined(USE_UDPNM)
\r
29 extern const UdpNm_ConfigType UdpNm_Config;
\r
31 #if defined(USE_COMM)
\r
32 extern const ComM_ConfigType ComM_Config;
\r
35 #if defined(USE_J1939TP)
\r
36 extern const J1939Tp_ConfigType J1939Tp_Config;
\r
39 #if defined(USE_WDGM)
\r
40 const EcuM_WdgMType EcuM_WdgMConfig = {
\r
41 .EcuMSupervisedEntity = NULL,
\r
42 .EcuMWdgMWakeupMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
43 .EcuMWdgMStartupMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
44 .EcuMWdgMRunMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
45 .EcuMWdgMPostRunMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
46 .EcuMWdgMShutdownMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
50 const EcuM_SleepModeType EcuM_SleepModeConfig[] = {
\r
52 .EcuMSleepModeId = ECUM_SLEEP_MODE_EcuMSleepMode,
\r
53 .EcuMWakeupSourceMask = ECUM_WKSOURCE_ECUMWAKEUPSOURCE,
\r
54 //.EcuMSleepModeMcuMode = MCU_MODE_SLEEP, // mpc5516
\r
55 .EcuMSleepModeMcuMode = MCU_MODE_MCUMODESETTINGCONF
\r
56 #if defined(USE_WDGM)
\r
57 .EcuMSleepModeWdgMMode = ECUM_SLEEP_MODE_WDGM_MODE_ILL,
\r
62 const EcuM_WakeupSourceConfigType EcuM_WakeupSourceConfig[] = {
\r
63 { // EcuMWakeupSource
\r
64 .EcuMWakeupSourceId = ECUM_WKSOURCE_ECUMWAKEUPSOURCE,
\r
65 .EcuMWakeupSourcePolling = false,
\r
66 .EcuMValidationTimeout = 0,
\r
67 #if defined(USE_COMM)
\r
68 .EcuMComMChannel = ECUM_COMM_CHANNEL_ILL,
\r
74 EcuM_ConfigType EcuMConfig =
\r
76 .EcuMDefaultShutdownTarget = ECUM_STATE_RESET,
\r
77 .EcuMDefaultSleepMode = 0, // Don't care
\r
78 .EcuMDefaultAppMode = OSDEFAULTAPPMODE,
\r
79 .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT,
\r
80 .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT,
\r
81 .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION,
\r
82 #if defined(USE_WDGM)
\r
83 .EcuMWdgMConfig = &EcuM_WdgMConfig,
\r
85 .EcuMSleepModeConfig = EcuM_SleepModeConfig,
\r
87 #if defined(USE_MCU)
\r
88 .McuConfig = McuConfigData,
\r
90 #if defined(USE_PORT)
\r
91 .PortConfig = &PortConfigData,
\r
93 #if defined(USE_CAN)
\r
94 .CanConfig = &CanConfigData,
\r
96 #if defined(USE_CANIF)
\r
97 .CanIfConfig = &CanIf_Config,
\r
99 #if defined(USE_CANSM)
\r
100 .CanSMConfig = &CanSM_Config,
\r
102 #if defined(USE_CANNM)
\r
103 .CanNmConfig = &CanNm_Config,
\r
105 #if defined(USE_UDPNM)
\r
106 .UdpNmConfig = &UdpNm_Config,
\r
108 #if defined(USE_COM)
\r
109 .ComConfig = &ComConfiguration,
\r
111 #if defined(USE_COMM)
\r
112 .ComMConfig = &ComM_Config,
\r
114 #if defined(USE_J1939TP)
\r
115 .J1939TpConfig = &J1939Tp_Config,
\r
117 #if defined(USE_NM)
\r
118 .NmConfig = &Nm_Config,
\r
120 #if defined(USE_PDUR)
\r
121 .PduRConfig = &PduR_Config,
\r
123 #if defined(USE_J1939TP)
\r
124 .J1939TpConfig = &J1939Tp_Config,
\r
126 #if defined(USE_DMA)
\r
127 .DmaConfig = DmaConfig,
\r
129 #if defined(USE_ADC)
\r
130 .AdcConfig = AdcConfig,
\r
132 #if defined(USE_PWM)
\r
133 .PwmConfig = &PwmConfig,
\r
135 #if defined(USE_WDG)
\r
136 .WdgConfig = &WdgConfig,
\r
138 #if defined(USE_WDGM)
\r
139 .WdgMConfig = &WdgMConfig,
\r
141 #if defined(USE_WDGIF)
\r
142 .WdgIfConfig = &WdgIfConfig,
\r
144 #if defined(USE_GPT)
\r
145 .GptConfig = GptConfigData,
\r
147 #if defined(USE_FLS)
\r
148 .FlashConfig = FlsConfigSet,
\r
150 #if defined(USE_EEP)
\r
151 .EepConfig = EepConfigData,
\r
153 #if defined(USE_SPI)
\r
154 .SpiConfig = &SpiConfigData,
\r