]> rtime.felk.cvut.cz Git - arc.git/blobdiff - boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_PBcfg.c
Updated examples for HCS12
[arc.git] / boards / hcs12x_elmicro_tboard / examples / os_simple / config / EcuM_PBcfg.c
index dd49a6e96fb2dec93712e39211acb55630b1801d..712d7d7e2407afad2b2d0bc3018fa4142a8ebc38 100644 (file)
@@ -7,13 +7,12 @@
 * Configured for (MCU):    HCS12\r
 *\r
 * Module vendor:           ArcCore\r
-* Generator version:       2.0.2\r
+* Generator version:       2.1.10\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
 */\r
 \r
 \r
-\r
 #include "EcuM.h"\r
 #include "EcuM_Generated_Types.h"\r
 \r
@@ -37,6 +36,39 @@ extern const ComM_ConfigType ComM_Config;
 extern const J1939Tp_ConfigType J1939Tp_Config;\r
 #endif\r
 \r
+#if defined(USE_WDGM)\r
+const EcuM_WdgMType EcuM_WdgMConfig = {\r
+  .EcuMSupervisedEntity = NULL,\r
+  .EcuMWdgMWakeupMode  = NULL,\r
+  .EcuMWdgMStartupMode  = NULL,\r
+  .EcuMWdgMRunMode = NULL,\r
+  .EcuMWdgMPostRunMode  = NULL,\r
+  .EcuMWdgMShutdownMode = NULL,\r
+};\r
+#endif\r
+\r
+const EcuM_SleepModeType EcuM_SleepModeConfig[] = {\r
+       { // EcuMSleepMode \r
+               .EcuMSleepModeId = ECUM_SLEEP_MODE_EcuMSleepMode,\r
+               .EcuMWakeupSourceMask = ECUM_WKSOURCE_ECUMWAKEUPSOURCE,\r
+               .EcuMSleepModeMcuMode = MCU_MODE_MCUMODESETTINGCONF,\r
+#if defined(USE_WDGM)\r
+               .EcuMSleepModeWdgMMode = NULL,\r
+#endif\r
+       }\r
+};\r
+\r
+const EcuM_WakeupSourceConfigType EcuM_WakeupSourceConfig[] = {\r
+       { // EcuMWakeupSource \r
+               .EcuMWakeupSourceId = ECUM_WKSOURCE_ECUMWAKEUPSOURCE,\r
+               .EcuMWakeupSourcePolling = false,\r
+               .EcuMValidationTimeout = 0,\r
+#if defined(USE_COMM)\r
+               .EcuMComMChannel = NULL,\r
+#endif\r
+       }\r
+};\r
+\r
 \r
 EcuM_ConfigType EcuMConfig =\r
 {\r
@@ -46,54 +78,58 @@ EcuM_ConfigType EcuMConfig =
        .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT,\r
        .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT,\r
        .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION,\r
+#if defined(USE_WDGM)\r
+       .EcuMWdgMConfig = &EcuM_WdgMConfig,\r
+#endif\r
+       .EcuMSleepModeConfig = &EcuM_SleepModeConfig,\r
 \r
 #if defined(USE_MCU)\r
-        .McuConfig = McuConfigData,\r
+       .McuConfig = McuConfigData,\r
 #endif\r
 #if defined(USE_PORT)\r
-        .PortConfig = &PortConfigData,\r
+       .PortConfig = &PortConfigData,\r
 #endif\r
 #if defined(USE_CAN)\r
-        .CanConfig = &CanConfigData,\r
+       .CanConfig = &CanConfigData,\r
 #endif\r
 #if defined(USE_CANIF)\r
-        .CanIfConfig = &CanIf_Config,\r
+       .CanIfConfig = &CanIf_Config,\r
 #endif\r
 #if defined(USE_CANSM)\r
-        .CanSMConfig = &CanSM_Config,\r
+       .CanSMConfig = &CanSM_Config,\r
 #endif\r
 #if defined(USE_CANNM)\r
-        .CanNmConfig = &CanNm_Config,\r
+       .CanNmConfig = &CanNm_Config,\r
 #endif\r
 #if defined(USE_UDPNM)\r
-        .UdpNmConfig = &UdpNm_Config,\r
+       .UdpNmConfig = &UdpNm_Config,\r
 #endif\r
 #if defined(USE_COM)\r
-        .ComConfig = &ComConfiguration,\r
+       .ComConfig = &ComConfiguration,\r
 #endif\r
 #if defined(USE_COMM)\r
-        .ComMConfig = &ComM_Config,\r
+       .ComMConfig = &ComM_Config,\r
 #endif\r
 #if defined(USE_J1939TP)\r
-        .J1939TpConfig = &J1939Tp_Config,\r
+       .J1939TpConfig = &J1939Tp_Config,\r
 #endif\r
 #if defined(USE_NM)\r
-        .NmConfig = &Nm_Config,\r
+       .NmConfig = &Nm_Config,\r
 #endif\r
 #if defined(USE_PDUR)\r
-        .PduRConfig = &PduR_Config,\r
+       .PduRConfig = &PduR_Config,\r
 #endif\r
 #if defined(USE_J1939TP)\r
-        .J1939TpConfig = &J1939Tp_Config,\r
+       .J1939TpConfig = &J1939Tp_Config,\r
 #endif\r
 #if defined(USE_DMA)\r
-        .DmaConfig = DmaConfig,\r
+       .DmaConfig = DmaConfig,\r
 #endif\r
 #if defined(USE_ADC)\r
-        .AdcConfig = AdcConfig,\r
+       .AdcConfig = AdcConfig,\r
 #endif\r
 #if defined(USE_PWM)\r
-        .PwmConfig = &PwmConfig,\r
+       .PwmConfig = &PwmConfig,\r
 #endif\r
 #if defined(USE_WDG)\r
     .WdgConfig = &WdgConfig,\r
@@ -105,7 +141,7 @@ EcuM_ConfigType EcuMConfig =
     .WdgIfConfig = &WdgIfConfig,\r
 #endif\r
 #if defined(USE_GPT)\r
-        .GptConfig = GptConfigData,\r
+       .GptConfig = GptConfigData,\r
 #endif\r
 #if defined(USE_FLS)\r
        .FlashConfig = FlsConfigSet,\r