]> rtime.felk.cvut.cz Git - arc.git/commitdiff
mpc5668, updated example.
authorhebe <devnull@localhost>
Fri, 14 Sep 2012 12:26:56 +0000 (14:26 +0200)
committerhebe <devnull@localhost>
Fri, 14 Sep 2012 12:26:56 +0000 (14:26 +0200)
boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c [deleted file]
boards/mpc5668_gkit/examples/os_simple/config/EcuM_Cfg.h
boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h [deleted file]
boards/mpc5668_gkit/examples/os_simple/config/EcuM_PBcfg.c
boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.c
boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.h
boards/mpc5668_gkit/examples/os_simple/os_simple_mpc5668_gkit.arxml

diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c
deleted file mode 100644 (file)
index ebbf7a4..0000000
+++ /dev/null
@@ -1,332 +0,0 @@
-/*\r
-* Configuration of module: EcuM (EcuM_Callout_Stubs.c)\r
-*\r
-* Created by:              \r
-* Copyright:               \r
-*\r
-* Configured for (MCU):    MPC5668\r
-*\r
-* Module vendor:           ArcCore\r
-* Generator version:       2.0.2\r
-*\r
-* Generated by Arctic Studio (http://arccore.com) \r
-*/\r
-\r
-\r
-#include "EcuM.h"\r
-#include "EcuM_Generated_Types.h"\r
-#include "Det.h"\r
-#if defined(USE_DEM)\r
-#include "Dem.h"\r
-#endif\r
-#if defined(USE_MCU)\r
-#include "Mcu.h"\r
-#endif\r
-#if defined(USE_GPT)\r
-#include "Gpt.h"\r
-#endif\r
-#if defined(USE_CAN)\r
-#include "Can.h"\r
-#endif\r
-#if defined(USE_CANIF)\r
-#include "CanIf.h"\r
-#endif\r
-#if defined(USE_PDUR)\r
-#include "PduR.h"\r
-#endif\r
-#if defined(USE_COM)\r
-#include "Com.h"\r
-#endif\r
-#if defined(USE_CANTP)\r
-#include "CanTp.h"\r
-#endif\r
-#if defined(USE_J1939TP)\r
-#include "J1939Tp.h"\r
-#endif\r
-#if defined(USE_DCM)\r
-#include "Dcm.h"\r
-#endif\r
-#if defined(USE_PWM)\r
-#include "Pwm.h"\r
-#endif\r
-#if defined(USE_IOHWAB)\r
-#include "IoHwAb.h"\r
-#endif\r
-#if defined(USE_FLS)\r
-#include "Fls.h"\r
-#endif\r
-#if defined(USE_EEP)\r
-#include "Eep.h"\r
-#endif\r
-#if defined(USE_FEE)\r
-#include "Fee.h"\r
-#endif\r
-#if defined(USE_EA)\r
-#include "Ea.h"\r
-#endif\r
-#if defined(USE_NVM)\r
-#include "NvM.h"\r
-#endif\r
-#if defined(USE_COMM)\r
-#include "ComM.h"\r
-#endif\r
-#if defined(USE_NM)\r
-#include "Nm.h"\r
-#endif\r
-#if defined(USE_CANNM)\r
-#include "CanNm.h"\r
-#endif\r
-#if defined(USE_CANSM)\r
-#include "CanSM.h"\r
-#endif\r
-#if defined(USE_UDPNM)\r
-#include "UdpNm.h"\r
-#endif\r
-#if defined(USE_LINSM)\r
-#include "LinSM.h"\r
-#endif\r
-#if defined(USE_SPI)\r
-#include "Spi.h"\r
-#endif\r
-#if defined(USE_WDG)\r
-#include "Wdg.h"\r
-#endif\r
-#if defined(USE_WDGM)\r
-#include "WdgM.h"\r
-#endif\r
-\r
-void EcuM_AL_DriverInitZero(void)\r
-{\r
-       Det_Init();/** @req EcuM2783 */\r
-    Det_Start();/** @req EcuM2634 */\r
-}\r
-\r
-extern EcuM_ConfigType EcuMConfig;\r
-\r
-EcuM_ConfigType* EcuM_DeterminePbConfiguration(void)\r
-{\r
-       return &EcuMConfig;\r
-}\r
-\r
-void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr)\r
-{\r
-       (void)ConfigPtr;\r
-  //lint --e{715}       PC-Lint (715) - ConfigPtr usage depends on configuration of modules\r
-\r
-#if defined(USE_MCU)\r
-       Mcu_Init(ConfigPtr->McuConfig);\r
-\r
-       /* Set up default clock (Mcu_InitClock requires initRun==1) */\r
-       /* Ignoring return value */\r
-       (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings );\r
-\r
-       // Wait for PLL to sync.\r
-       while (Mcu_GetPllStatus() != MCU_PLL_LOCKED)\r
-       {\r
-         ;\r
-       }\r
-#endif\r
-\r
-#if defined(USE_DEM)\r
-       // Preinitialize DEM\r
-       Dem_PreInit();\r
-#endif\r
-\r
-#if defined(USE_PORT)\r
-       // Setup Port\r
-       Port_Init(ConfigPtr->PortConfig);\r
-#endif\r
-\r
-\r
-#if defined(USE_GPT)\r
-       // Setup the GPT\r
-       Gpt_Init(ConfigPtr->GptConfig);\r
-#endif\r
-\r
-       // Setup watchdog\r
-#if defined(USE_WDG)\r
-       Wdg_Init(ConfigPtr->WdgConfig);\r
-#endif\r
-#if defined(USE_WDGM)\r
-       WdgM_Init(ConfigPtr->WdgMConfig);\r
-#endif\r
-\r
-#if defined(USE_DMA)\r
-       // Setup DMA\r
-       Dma_Init(ConfigPtr->DmaConfig);\r
-#endif\r
-\r
-#if defined(USE_ADC)\r
-       // Setup ADC\r
-       Adc_Init(ConfigPtr->AdcConfig);\r
-#endif\r
-\r
-       // Setup ICU\r
-       // TODO\r
-\r
-       // Setup PWM\r
-#if defined(USE_PWM)\r
-       // Setup PWM\r
-       Pwm_Init(ConfigPtr->PwmConfig);\r
-#endif\r
-}\r
-\r
-void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr)\r
-{\r
-       (void)ConfigPtr;\r
-  //lint --e{715}       PC-Lint (715) - ConfigPtr usage depends on configuration of modules\r
-\r
-#if defined(USE_SPI)\r
-       // Setup SPI\r
-       Spi_Init(ConfigPtr->SpiConfig);\r
-#endif\r
-\r
-#if defined(USE_EEP)\r
-       // Setup EEP\r
-       Eep_Init(ConfigPtr->EepConfig);\r
-#endif\r
-\r
-#if defined(USE_FLS)\r
-       // Setup Flash\r
-       Fls_Init(ConfigPtr->FlashConfig);\r
-#endif\r
-\r
-#if defined(USE_FEE)\r
-       // Setup FEE\r
-       Fee_Init();\r
-#endif\r
-\r
-#if defined(USE_EA)\r
-       // Setup EA\r
-       Ea_Init();\r
-#endif\r
-\r
-#if defined(USE_NVM)\r
-       // Setup NVRAM Manager and start the read all job\r
-       NvM_Init();\r
-       NvM_ReadAll();\r
-#endif\r
-\r
-       // Setup CAN tranceiver\r
-       // TODO\r
-\r
-#if defined(USE_CAN)\r
-       // Setup Can driver\r
-       Can_Init(ConfigPtr->CanConfig);\r
-#endif\r
-\r
-#if defined(USE_CANIF)\r
-       // Setup CanIf\r
-       CanIf_Init(ConfigPtr->CanIfConfig);\r
-#endif\r
-\r
-#if defined(USE_CANTP)\r
-       // Setup CAN TP\r
-       CanTp_Init();\r
-#endif\r
-\r
-#if defined(USE_CANSM)\r
-        CanSM_Init(ConfigPtr->CanSMConfig);\r
-#endif\r
-\r
-#if defined(USE_J1939TP)\r
-       // Setup J1939Tp\r
-       J1939Tp_Init(ConfigPtr->J1939TpConfig);\r
-#endif\r
-\r
-\r
-       // Setup LIN\r
-       // TODO\r
-\r
-#if defined(USE_PDUR)\r
-       // Setup PDU Router\r
-       PduR_Init(ConfigPtr->PduRConfig);\r
-#endif\r
-\r
-#if defined(USE_CANNM)\r
-        // Setup Can Network Manager\r
-        CanNm_Init(ConfigPtr->CanNmConfig);\r
-#endif\r
-\r
-#if defined(USE_UDPNM)\r
-        // Setup Udp Network Manager\r
-        UdpNm_Init(ConfigPtr->UdpNmConfig);\r
-#endif\r
-\r
-#if defined(USE_NM)\r
-        // Setup Network Management Interface\r
-        Nm_Init(ConfigPtr->NmConfig);\r
-#endif\r
-\r
-#if defined(USE_COM)\r
-       // Setup COM layer\r
-       Com_Init(ConfigPtr->ComConfig);\r
-#endif\r
-\r
-#if defined(USE_DCM)\r
-       // Setup DCM\r
-       Dcm_Init();\r
-#endif\r
-\r
-#if defined(USE_IOHWAB)\r
-       // Setup IO hardware abstraction layer\r
-       IoHwAb_Init();\r
-#endif\r
-\r
-}\r
-\r
-void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr)\r
-{\r
-       (void)ConfigPtr;\r
-  //lint --e{715}       PC-Lint (715) - ConfigPtr usage depends on configuration of modules\r
-\r
-#if defined(USE_DEM)\r
-       // Setup DEM\r
-       Dem_Init();\r
-#endif\r
-\r
-#if defined(USE_COMM)\r
-        // Setup Communication Manager\r
-        ComM_Init(ConfigPtr->ComMConfig);\r
-#endif\r
-}\r
-\r
-void EcuM_OnEnterRUN(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnExitRun(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnExitPostRun(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnPrepShutdown(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnGoSleep(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnGoOffOne(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_OnGoOffTwo(void)\r
-{\r
-\r
-}\r
-\r
-void EcuM_AL_SwitchOff(void)\r
-{\r
-\r
-}\r
index d2a4470faa4ce4e7ceea72378090428974a4b55b..9d817ef08d72825e232588c2ff77b9237998bc6a 100644 (file)
@@ -7,7 +7,7 @@
 * Configured for (MCU):    MPC5668\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
 #define ECUM_NVRAM_WRITEALL_TIMEOUT (10000)\r
 #define ECUM_NVRAM_MIN_RUN_DURATION (10000)\r
 \r
+#define ECUM_VALIDATION_TIMEOUT          0\r
 \r
 typedef enum {\r
        ECUM_USER_EcuMUserConfig,\r
        ECUM_USER_ENDMARK       // Must be the last in list!\r
 } EcuM_UserList;\r
 \r
+// EcuM Sleep Mode IDs\r
+#define ECUM_SLEEP_MODE_EcuMSleepMode 0\r
+#define ECUM_SLEEP_MODE_CNT 1\r
+\r
+typedef enum {\r
+       ECUM_WKSOURCE_POWER = (1<<0),\r
+       ECUM_WKSOURCE_RESET = (1<<1),\r
+       ECUM_WKSOURCE_INTERNAL_RESET = (1<<2),\r
+       ECUM_WKSOURCE_INTERNAL_WDG = (1<<3),\r
+       ECUM_WKSOURCE_EXTERNAL_WDG = (1<<4),\r
+       ECUM_WKSOURCE_ECUMWAKEUPSOURCE = (1<<5),        \r
+       ECUM_WKSOURCE_ALL_SOURCES = 0x3FFFFFFF\r
+} EcuM_WakeupSourceType ;\r
 \r
 #endif /*ECUM_CFG_H_*/\r
 \r
diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h
deleted file mode 100644 (file)
index bcc478a..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-/*\r
-* Configuration of module: EcuM (EcuM_Generated_Types.h)\r
-*\r
-* Created by:              \r
-* Copyright:               \r
-*\r
-* Configured for (MCU):    MPC5668\r
-*\r
-* Module vendor:           ArcCore\r
-* Generator version:       2.0.2\r
-*\r
-* Generated by Arctic Studio (http://arccore.com) \r
-*/\r
-\r
-
-#if !(((ECUM_SW_MAJOR_VERSION == 2) && (ECUM_SW_MINOR_VERSION == 0)) )
-#error EcuM: Configuration file expected BSW module version to be 2.0.*
-#endif
-
-\r
-#ifndef _ECUM_GENERATED_TYPES_H_\r
-#define _ECUM_GENERATED_TYPES_H_\r
-\r
-#ifdef CFG_ECUM_USE_SERVICE_COMPONENT\r
-#include "Rte_EcuM.h"\r
-#endif\r
-\r
-#include "EcuM_Types.h"\r
-\r
-#if defined(USE_MCU)\r
-#include "Mcu.h"\r
-#endif\r
-#if defined(USE_PORT)\r
-#include "Port.h"\r
-#endif\r
-#if defined(USE_CAN)\r
-#include "Can.h"\r
-#endif\r
-#if defined(USE_CANIF)\r
-#include "CanIf.h"\r
-#endif\r
-#if defined(USE_PWM)\r
-#include "Pwm.h"\r
-#endif\r
-#if defined(USE_COM)\r
-#include "Com.h"\r
-#endif\r
-#if defined(USE_PDUR)\r
-#include "PduR.h"\r
-#endif\r
-#if defined(USE_DMA)\r
-#include "Dma.h"\r
-#endif\r
-#if defined(USE_ADC)\r
-#include "Adc.h"\r
-#endif\r
-#if defined(USE_GPT)\r
-#include "Gpt.h"\r
-#endif\r
-#if defined(USE_COMM)\r
-#include "ComM.h"\r
-#endif\r
-#if defined(USE_NM)\r
-#include "Nm.h"\r
-#endif\r
-#if defined(USE_CANNM)\r
-#include "CanNm.h"\r
-#endif\r
-#if defined(USE_CANSM)\r
-#include "CanSM.h"\r
-#endif\r
-#if defined(USE_J1939TP)\r
-#include "J1939Tp.h"\r
-#endif\r
-#if defined(USE_UDPNM)\r
-#include "UdpNm.h"\r
-#endif\r
-#if defined(USE_LINSM)\r
-#include "LinSM.h"\r
-#endif\r
-#if defined(USE_FLS)\r
-#include "Fls.h"\r
-#endif\r
-#if defined(USE_EEP)\r
-#include "Eep.h"\r
-#endif\r
-#if defined(USE_SPI)\r
-#include "Spi.h"\r
-#endif\r
-#if defined(USE_WDG)\r
-#include "Wdg.h"\r
-#endif\r
-#if defined(USE_WDGM)\r
-#include "WdgM.h"\r
-#endif\r
-#if defined(USE_WDGIF)\r
-#include "WdgIf.h"\r
-#endif\r
-\r
-\r
-typedef struct\r
-{\r
-       EcuM_StateType EcuMDefaultShutdownTarget;\r
-       uint8 EcuMDefaultSleepMode;\r
-       AppModeType EcuMDefaultAppMode;\r
-       uint32 EcuMRunMinimumDuration;\r
-       uint32 EcuMNvramReadAllTimeout;\r
-       uint32 EcuMNvramWriteAllTimeout;\r
-\r
-#if defined(USE_MCU)\r
-        const Mcu_ConfigType* McuConfig;\r
-#endif\r
-#if defined(USE_PORT)\r
-        const Port_ConfigType* PortConfig;\r
-#endif\r
-#if defined(USE_CAN)\r
-        const Can_ConfigType* CanConfig;\r
-#endif\r
-#if defined(USE_CANIF)\r
-        const CanIf_ConfigType* CanIfConfig;\r
-#endif\r
-#if defined(USE_CANSM)\r
-        const CanSM_ConfigType* CanSMConfig;\r
-#endif\r
-#if defined(USE_NM)\r
-        const Nm_ConfigType* NmConfig;\r
-#endif\r
-#if defined(USE_CANNM)\r
-        const CanNm_ConfigType* CanNmConfig;\r
-#endif\r
-#if defined(USE_UDPNM)\r
-        const UdpNm_ConfigType* UdpNmConfig;\r
-#endif\r
-#if defined(USE_COMM)\r
-        const ComM_ConfigType* ComMConfig;\r
-#endif\r
-#if defined(USE_COM)\r
-        const Com_ConfigType* ComConfig;\r
-#endif\r
-#if defined(USE_J1939TP)\r
-        const J1939Tp_ConfigType* J1939TpConfig;\r
-#endif\r
-#if defined(USE_PDUR)\r
-        const PduR_PBConfigType* PduRConfig;\r
-#endif\r
-#if defined(USE_PWM)\r
-        const Pwm_ConfigType* PwmConfig;\r
-#endif\r
-#if defined(USE_DMA)\r
-        const Dma_ConfigType* DmaConfig;\r
-#endif\r
-#if defined(USE_ADC)\r
-    const Adc_ConfigType* AdcConfig;\r
-#endif\r
-#if defined(USE_GPT)\r
-    const Gpt_ConfigType* GptConfig;\r
-#endif\r
-#if defined(USE_FLS)\r
-       const Fls_ConfigType* FlashConfig;\r
-#endif\r
-#if defined(USE_EEP)\r
-       const Eep_ConfigType* EepConfig;\r
-#endif\r
-#if defined(USE_SPI)\r
-       const Spi_ConfigType* SpiConfig;\r
-#endif\r
-#if defined(USE_WDG)\r
-    const Wdg_ConfigType* WdgConfig;\r
-#endif\r
-#if defined(USE_WDGIF)\r
-    const WdgIf_ConfigType* WdgIfConfig;\r
-#endif\r
-#if defined(USE_WDGM)\r
-    const WdgM_ConfigType* WdgMConfig;\r
-#endif\r
-} EcuM_ConfigType;\r
-\r
-#endif /*_ECUM_GENERATED_TYPES_H_*/\r
index 194e498a0e6e903f4653a01541309b356f70fe74..2838b547e7b54cc61d41e4667d74b3aa9257d0f1 100644 (file)
@@ -7,13 +7,12 @@
 * Configured for (MCU):    MPC5668\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_SLEEP,\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
index 12b1ce15ee93addcf8415d40a2a83d66b535d73f..1da543dcbe6e8653426a379981fa294288a30ac8 100644 (file)
@@ -7,7 +7,7 @@
 * Configured for (MCU):    MPC5668\r
 *\r
 * Module vendor:           ArcCore\r
-* Generator version:       2.0.2\r
+* Generator version:       2.0.3\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
 */\r
index 5371dbf3a5ce81a793d16cdc49216563057fca6a..24bdd71138ae59d15165a09d94794035f11f0974 100644 (file)
@@ -7,7 +7,7 @@
 * Configured for (MCU):    MPC5668\r
 *\r
 * Module vendor:           ArcCore\r
-* Generator version:       2.0.2\r
+* Generator version:       2.0.3\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
 */\r
 #define MCU_PERFORM_RESET_API  STD_ON\r
 #define MCU_VERSION_INFO_API   STD_ON\r
 \r
+\r
+typedef enum {\r
+       MCU_MODE_RUN = 0,\r
+       MCU_MODE_SLEEP = 1,\r
+       MCU_MODE_NORMAL = 2 // Here for backwards compatibility reasons. Not used anymore.\r
+} Mcu_ModeType;\r
+\r
+\r
 typedef enum {\r
        MCU_CLOCKTYPE_EXT_REF_112MHZ = 0,\r
   MCU_NBR_OF_CLOCKS,\r
index f71b6fafb52196e756548ab132fef606eefa807d..e030f05c397edd8bfbe7209b34ff36ccb4f19962 100644 (file)
                   <SHORT-NAME>EcuMUserConfig</SHORT-NAME>\r
                   <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMUserConfig</DEFINITION-REF>\r
                 </CONTAINER>\r
+                <CONTAINER UUID="2b9f843d-9ae2-46d0-a37c-aab97b3edf49">\r
+                  <SHORT-NAME>EcuMDefaultShutdownTarget</SHORT-NAME>\r
+                  <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMDefaultShutdownTarget</DEFINITION-REF>\r
+                  <PARAMETER-VALUES>\r
+                    <ENUMERATION-VALUE>\r
+                      <DEFINITION-REF DEST="ENUMERATION-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMDefaultShutdownTarget/EcuMDefaultState</DEFINITION-REF>\r
+                      <VALUE>EcuMStateReset</VALUE>\r
+                    </ENUMERATION-VALUE>\r
+                  </PARAMETER-VALUES>\r
+                  <REFERENCE-VALUES>\r
+                    <REFERENCE-VALUE>\r
+                      <DEFINITION-REF DEST="SYMBOLIC-NAME-REFERENCE-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMDefaultShutdownTarget/EcuMDefaultSleepModeRef</DEFINITION-REF>\r
+                    </REFERENCE-VALUE>\r
+                  </REFERENCE-VALUES>\r
+                </CONTAINER>\r
+                <CONTAINER UUID="96a2da2b-4a12-4eb5-9714-02f22ff10dfe">\r
+                  <SHORT-NAME>EcuMSleepMode</SHORT-NAME>\r
+                  <ADMIN-DATA>\r
+                    <SDGS>\r
+                      <SDG GID="Arccore::IdentifiableOptions" />\r
+                    </SDGS>\r
+                  </ADMIN-DATA>\r
+                  <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMSleepMode</DEFINITION-REF>\r
+                  <PARAMETER-VALUES>\r
+                    <INTEGER-VALUE>\r
+                      <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMSleepMode/EcuMSleepModeId</DEFINITION-REF>\r
+                      <VALUE>0</VALUE>\r
+                    </INTEGER-VALUE>\r
+                    <BOOLEAN-VALUE>\r
+                      <DEFINITION-REF DEST="BOOLEAN-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMSleepMode/EcuMSleepModeSuspend</DEFINITION-REF>\r
+                      <VALUE>false</VALUE>\r
+                    </BOOLEAN-VALUE>\r
+                  </PARAMETER-VALUES>\r
+                  <REFERENCE-VALUES>\r
+                    <REFERENCE-VALUE>\r
+                      <DEFINITION-REF DEST="SYMBOLIC-NAME-REFERENCE-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMSleepMode/EcuMSleepModeMcuModeRef</DEFINITION-REF>\r
+                      <VALUE-REF DEST="CONTAINER">/os_simple_mpc5668_gkit/Mcu/McuModuleConfiguration/SLEEP</VALUE-REF>\r
+                    </REFERENCE-VALUE>\r
+                    <REFERENCE-VALUE>\r
+                      <DEFINITION-REF DEST="SYMBOLIC-NAME-REFERENCE-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMSleepMode/EcuMWakeupSourceMask</DEFINITION-REF>\r
+                      <VALUE-REF DEST="CONTAINER">/os_simple_mpc5668_gkit/EcuM/EcuMConfiguration/EcuMWakeupSource</VALUE-REF>\r
+                    </REFERENCE-VALUE>\r
+                  </REFERENCE-VALUES>\r
+                </CONTAINER>\r
+                <CONTAINER UUID="452b79fc-3a23-4615-bf27-9b336892e6eb">\r
+                  <SHORT-NAME>EcuMWakeupSource</SHORT-NAME>\r
+                  <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMWakeupSource</DEFINITION-REF>\r
+                  <PARAMETER-VALUES>\r
+                    <INTEGER-VALUE>\r
+                      <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMWakeupSource/EcuMResetReason</DEFINITION-REF>\r
+                      <VALUE>0</VALUE>\r
+                    </INTEGER-VALUE>\r
+                    <FLOAT-VALUE>\r
+                      <DEFINITION-REF DEST="FLOAT-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMWakeupSource/EcuMValidationTimeout</DEFINITION-REF>\r
+                      <VALUE>0.0</VALUE>\r
+                    </FLOAT-VALUE>\r
+                    <INTEGER-VALUE>\r
+                      <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMWakeupSource/EcuMWakeupSourceId</DEFINITION-REF>\r
+                      <VALUE>0</VALUE>\r
+                    </INTEGER-VALUE>\r
+                    <BOOLEAN-VALUE>\r
+                      <DEFINITION-REF DEST="BOOLEAN-PARAM-DEF">/ArcCore/EcuM/EcuMConfiguration/EcuMWakeupSource/EcuMWakeupSourcePolling</DEFINITION-REF>\r
+                      <VALUE>false</VALUE>\r
+                    </BOOLEAN-VALUE>\r
+                  </PARAMETER-VALUES>\r
+                </CONTAINER>\r
               </SUB-CONTAINERS>\r
             </CONTAINER>\r
           </CONTAINERS>\r
                     </CONTAINER>\r
                   </SUB-CONTAINERS>\r
                 </CONTAINER>\r
-                <CONTAINER UUID="981c619f-8c0e-448e-8ec9-c269a1cad94f">\r
-                  <SHORT-NAME>McuModeSettingConf</SHORT-NAME>\r
+                <CONTAINER UUID="1ea8d5da-1890-4d22-9d85-bedf041a1874">\r
+                  <SHORT-NAME>RUN</SHORT-NAME>\r
+                  <ADMIN-DATA>\r
+                    <SDGS>\r
+                      <SDG GID="Arccore::IdentifiableOptions" />\r
+                    </SDGS>\r
+                  </ADMIN-DATA>\r
+                  <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuModeSettingConf</DEFINITION-REF>\r
+                  <PARAMETER-VALUES>\r
+                    <INTEGER-VALUE>\r
+                      <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuModeSettingConf/McuMode</DEFINITION-REF>\r
+                      <VALUE>0</VALUE>\r
+                    </INTEGER-VALUE>\r
+                  </PARAMETER-VALUES>\r
+                </CONTAINER>\r
+                <CONTAINER UUID="e6435b61-a599-4555-ad6f-9b21f2dafb63">\r
+                  <SHORT-NAME>SLEEP</SHORT-NAME>\r
+                  <ADMIN-DATA>\r
+                    <SDGS>\r
+                      <SDG GID="Arccore::IdentifiableOptions" />\r
+                    </SDGS>\r
+                  </ADMIN-DATA>\r
                   <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuModeSettingConf</DEFINITION-REF>\r
                   <PARAMETER-VALUES>\r
                     <INTEGER-VALUE>\r