]> rtime.felk.cvut.cz Git - arc.git/blob - boards/ti_tms570ls/examples/tms570_hdk_led/config/EcuM_PBcfg.c
Added an example of LED Blinker for the TMS570LS31x HDK
[arc.git] / boards / ti_tms570ls / examples / tms570_hdk_led / config / EcuM_PBcfg.c
1 /*\r
2 * Configuration of module: EcuM (EcuM_PBcfg.c)\r
3 *\r
4 * Created by:              \r
5 * Copyright:               \r
6 *\r
7 * Configured for (MCU):    MPC551x\r
8 *\r
9 * Module vendor:           ArcCore\r
10 * Generator version:       2.1.10\r
11 *\r
12 * Generated by Arctic Studio (http://arccore.com) \r
13 */\r
14 \r
15 \r
16 #include "EcuM.h"\r
17 #include "EcuM_Generated_Types.h"\r
18 \r
19 #if defined(USE_CANSM)\r
20 extern const CanSM_ConfigType CanSM_Config;\r
21 #endif\r
22 #if defined(USE_NM)\r
23 extern const Nm_ConfigType Nm_Config;\r
24 #endif\r
25 #if defined(USE_CANNM)\r
26 extern const CanNm_ConfigType CanNm_Config;\r
27 #endif\r
28 #if defined(USE_UDPNM)\r
29 extern const UdpNm_ConfigType UdpNm_Config;\r
30 #endif\r
31 #if defined(USE_COMM)\r
32 extern const ComM_ConfigType ComM_Config;\r
33 #endif\r
34 \r
35 #if defined(USE_J1939TP)\r
36 extern const J1939Tp_ConfigType J1939Tp_Config;\r
37 #endif\r
38 \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
47 };\r
48 #endif\r
49 \r
50 const EcuM_SleepModeType EcuM_SleepModeConfig[] = {\r
51         { // EcuMSleepMode \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
58 #endif\r
59         }\r
60 };\r
61 \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
69 #endif\r
70         }\r
71 };\r
72 \r
73 \r
74 EcuM_ConfigType EcuMConfig =\r
75 {\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
84 #endif\r
85         .EcuMSleepModeConfig = EcuM_SleepModeConfig,\r
86 \r
87 #if defined(USE_MCU)\r
88         .McuConfig = McuConfigData,\r
89 #endif\r
90 #if defined(USE_PORT)\r
91         .PortConfig = &PortConfigData,\r
92 #endif\r
93 #if defined(USE_CAN)\r
94         .CanConfig = &CanConfigData,\r
95 #endif\r
96 #if defined(USE_CANIF)\r
97         .CanIfConfig = &CanIf_Config,\r
98 #endif\r
99 #if defined(USE_CANSM)\r
100         .CanSMConfig = &CanSM_Config,\r
101 #endif\r
102 #if defined(USE_CANNM)\r
103         .CanNmConfig = &CanNm_Config,\r
104 #endif\r
105 #if defined(USE_UDPNM)\r
106         .UdpNmConfig = &UdpNm_Config,\r
107 #endif\r
108 #if defined(USE_COM)\r
109         .ComConfig = &ComConfiguration,\r
110 #endif\r
111 #if defined(USE_COMM)\r
112         .ComMConfig = &ComM_Config,\r
113 #endif\r
114 #if defined(USE_J1939TP)\r
115         .J1939TpConfig = &J1939Tp_Config,\r
116 #endif\r
117 #if defined(USE_NM)\r
118         .NmConfig = &Nm_Config,\r
119 #endif\r
120 #if defined(USE_PDUR)\r
121         .PduRConfig = &PduR_Config,\r
122 #endif\r
123 #if defined(USE_J1939TP)\r
124         .J1939TpConfig = &J1939Tp_Config,\r
125 #endif\r
126 #if defined(USE_DMA)\r
127         .DmaConfig = DmaConfig,\r
128 #endif\r
129 #if defined(USE_ADC)\r
130         .AdcConfig = AdcConfig,\r
131 #endif\r
132 #if defined(USE_PWM)\r
133         .PwmConfig = &PwmConfig,\r
134 #endif\r
135 #if defined(USE_WDG)\r
136     .WdgConfig = &WdgConfig,\r
137 #endif\r
138 #if defined(USE_WDGM)\r
139     .WdgMConfig = &WdgMConfig,\r
140 #endif\r
141 #if defined(USE_WDGIF)\r
142     .WdgIfConfig = &WdgIfConfig,\r
143 #endif\r
144 #if defined(USE_GPT)\r
145         .GptConfig = GptConfigData,\r
146 #endif\r
147 #if defined(USE_FLS)\r
148         .FlashConfig = FlsConfigSet,\r
149 #endif\r
150 #if defined(USE_EEP)\r
151         .EepConfig = EepConfigData,\r
152 #endif\r
153 #if defined(USE_SPI)\r
154         .SpiConfig = &SpiConfigData,\r
155 #endif\r
156 };\r