]> rtime.felk.cvut.cz Git - arc.git/blob - boards/stm32_mcbstm32/examples/os_simple/config/EcuM_PBcfg.c
mcbstm32, updated examples.
[arc.git] / boards / stm32_mcbstm32 / examples / os_simple / 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):    STM32_F103\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  = NULL,\r
43   .EcuMWdgMStartupMode  = NULL,\r
44   .EcuMWdgMRunMode = NULL,\r
45   .EcuMWdgMPostRunMode  = NULL,\r
46   .EcuMWdgMShutdownMode = NULL,\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,\r
55 #if defined(USE_WDGM)\r
56                 .EcuMSleepModeWdgMMode = NULL,\r
57 #endif\r
58         }\r
59 };\r
60 \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
68 #endif\r
69         }\r
70 };\r
71 \r
72 \r
73 EcuM_ConfigType EcuMConfig =\r
74 {\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
83 #endif\r
84         .EcuMSleepModeConfig = &EcuM_SleepModeConfig,\r
85 \r
86 #if defined(USE_MCU)\r
87         .McuConfig = McuConfigData,\r
88 #endif\r
89 #if defined(USE_PORT)\r
90         .PortConfig = &PortConfigData,\r
91 #endif\r
92 #if defined(USE_CAN)\r
93         .CanConfig = &CanConfigData,\r
94 #endif\r
95 #if defined(USE_CANIF)\r
96         .CanIfConfig = &CanIf_Config,\r
97 #endif\r
98 #if defined(USE_CANSM)\r
99         .CanSMConfig = &CanSM_Config,\r
100 #endif\r
101 #if defined(USE_CANNM)\r
102         .CanNmConfig = &CanNm_Config,\r
103 #endif\r
104 #if defined(USE_UDPNM)\r
105         .UdpNmConfig = &UdpNm_Config,\r
106 #endif\r
107 #if defined(USE_COM)\r
108         .ComConfig = &ComConfiguration,\r
109 #endif\r
110 #if defined(USE_COMM)\r
111         .ComMConfig = &ComM_Config,\r
112 #endif\r
113 #if defined(USE_J1939TP)\r
114         .J1939TpConfig = &J1939Tp_Config,\r
115 #endif\r
116 #if defined(USE_NM)\r
117         .NmConfig = &Nm_Config,\r
118 #endif\r
119 #if defined(USE_PDUR)\r
120         .PduRConfig = &PduR_Config,\r
121 #endif\r
122 #if defined(USE_J1939TP)\r
123         .J1939TpConfig = &J1939Tp_Config,\r
124 #endif\r
125 #if defined(USE_DMA)\r
126         .DmaConfig = DmaConfig,\r
127 #endif\r
128 #if defined(USE_ADC)\r
129         .AdcConfig = AdcConfig,\r
130 #endif\r
131 #if defined(USE_PWM)\r
132         .PwmConfig = &PwmConfig,\r
133 #endif\r
134 #if defined(USE_WDG)\r
135     .WdgConfig = &WdgConfig,\r
136 #endif\r
137 #if defined(USE_WDGM)\r
138     .WdgMConfig = &WdgMConfig,\r
139 #endif\r
140 #if defined(USE_WDGIF)\r
141     .WdgIfConfig = &WdgIfConfig,\r
142 #endif\r
143 #if defined(USE_GPT)\r
144         .GptConfig = GptConfigData,\r
145 #endif\r
146 #if defined(USE_FLS)\r
147         .FlashConfig = FlsConfigSet,\r
148 #endif\r
149 #if defined(USE_EEP)\r
150         .EepConfig = EepConfigData,\r
151 #endif\r
152 #if defined(USE_SPI)\r
153         .SpiConfig = &SpiConfigData,\r
154 #endif\r
155 };\r