2 * Configuration of module: EcuM (EcuM_PBcfg.c)
\r
4 * Created by: ArcCore
\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 = NULL,
\r
43 .EcuMWdgMStartupMode = NULL,
\r
44 .EcuMWdgMRunMode = NULL,
\r
45 .EcuMWdgMPostRunMode = NULL,
\r
46 .EcuMWdgMShutdownMode = NULL,
\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,
\r
55 #if defined(USE_WDGM)
\r
56 .EcuMSleepModeWdgMMode = NULL,
\r
61 const EcuM_WakeupSourceConfigType EcuM_WakeupSourceConfig[] = {
\r
62 { // EcuMWakeupSource
\r
63 .EcuMWakeupSourceId = ECUM_WKSOURCE_ECUMWAKEUPSOURCE,
\r
64 .EcuMWakeupSourcePolling = false,
\r
65 .EcuMValidationTimeout = 0,
\r
66 #if defined(USE_COMM)
\r
67 .EcuMComMChannel = NULL,
\r
73 EcuM_ConfigType EcuMConfig =
\r
75 .EcuMDefaultShutdownTarget = ECUM_STATE_RESET,
\r
76 .EcuMDefaultSleepMode = 0, // Don't care
\r
77 .EcuMDefaultAppMode = OSDEFAULTAPPMODE,
\r
78 .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT,
\r
79 .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT,
\r
80 .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION,
\r
81 #if defined(USE_WDGM)
\r
82 .EcuMWdgMConfig = &EcuM_WdgMConfig,
\r
84 .EcuMSleepModeConfig = &EcuM_SleepModeConfig,
\r
86 #if defined(USE_MCU)
\r
87 .McuConfig = McuConfigData,
\r
89 #if defined(USE_PORT)
\r
90 .PortConfig = &PortConfigData,
\r
92 #if defined(USE_CAN)
\r
93 .CanConfig = &CanConfigData,
\r
95 #if defined(USE_CANIF)
\r
96 .CanIfConfig = &CanIf_Config,
\r
98 #if defined(USE_CANSM)
\r
99 .CanSMConfig = &CanSM_Config,
\r
101 #if defined(USE_CANNM)
\r
102 .CanNmConfig = &CanNm_Config,
\r
104 #if defined(USE_UDPNM)
\r
105 .UdpNmConfig = &UdpNm_Config,
\r
107 #if defined(USE_COM)
\r
108 .ComConfig = &ComConfiguration,
\r
110 #if defined(USE_COMM)
\r
111 .ComMConfig = &ComM_Config,
\r
113 #if defined(USE_J1939TP)
\r
114 .J1939TpConfig = &J1939Tp_Config,
\r
116 #if defined(USE_NM)
\r
117 .NmConfig = &Nm_Config,
\r
119 #if defined(USE_PDUR)
\r
120 .PduRConfig = &PduR_Config,
\r
122 #if defined(USE_J1939TP)
\r
123 .J1939TpConfig = &J1939Tp_Config,
\r
125 #if defined(USE_DMA)
\r
126 .DmaConfig = DmaConfig,
\r
128 #if defined(USE_ADC)
\r
129 .AdcConfig = AdcConfig,
\r
131 #if defined(USE_PWM)
\r
132 .PwmConfig = &PwmConfig,
\r
134 #if defined(USE_WDG)
\r
135 .WdgConfig = &WdgConfig,
\r
137 #if defined(USE_WDGM)
\r
138 .WdgMConfig = &WdgMConfig,
\r
140 #if defined(USE_WDGIF)
\r
141 .WdgIfConfig = &WdgIfConfig,
\r
143 #if defined(USE_GPT)
\r
144 .GptConfig = GptConfigData,
\r
146 #if defined(USE_FLS)
\r
147 .FlashConfig = FlsConfigSet,
\r
149 #if defined(USE_EEP)
\r
150 .EepConfig = EepConfigData,
\r
152 #if defined(USE_SPI)
\r
153 .SpiConfig = &SpiConfigData,
\r