]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Generated and built in-tree examples with 5606s
authorjcar <devnull@localhost>
Thu, 19 Apr 2012 08:31:00 +0000 (10:31 +0200)
committerjcar <devnull@localhost>
Thu, 19 Apr 2012 08:31:00 +0000 (10:31 +0200)
boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM.mk
boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_Stubs.c [new file with mode: 0644]
boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Cfg.h
boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Generated_Types.h
boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_PBcfg.c [new file with mode: 0644]
boards/mpc5606s_xpc560s/examples/os_simple/config/Mcu_Cfg.c
boards/mpc5606s_xpc560s/examples/os_simple/config/Mcu_Cfg.h
boards/mpc5606s_xpc560s/examples/os_simple/config/Os_Cfg.c
boards/mpc5606s_xpc560s/examples/os_simple/config/Os_Cfg.h
boards/mpc5606s_xpc560s/examples/os_simple/os_simple_mpc5606s_xpc560s.arxml

index d5b2cde95be6a134a38eb59cb88243396134382f..c1077a40d224fd30a4295315d0f8151bad257d64 100644 (file)
@@ -1,3 +1,5 @@
 \r
-MOD_USE += \r
+MOD_USE += KERNEL ECUM \r
+\r
+def-y += ECUM_USE_SERVICE_PORTS=STDOFF\r
 \r
diff --git a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_Stubs.c b/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_Stubs.c
new file mode 100644 (file)
index 0000000..fe913fa
--- /dev/null
@@ -0,0 +1,332 @@
+/*\r
+* Configuration of module: EcuM (EcuM_Callout_Stubs.c)\r
+*\r
+* Created by:              \r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    MPC560x\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 a54931300e71753bb91e5d3b7316667f96941467..90b9963dd0b458b4555cca074a673f561c0d4da6 100644 (file)
@@ -10,7 +10,6 @@
 * Generator version:       2.0.2\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
-*           on Thu Jun 16 20:13:48 CEST 2011\r
 */\r
 \r
 
@@ -26,8 +25,6 @@
 #define ECUM_VERSION_INFO_API  STD_OFF\r
 #define ECUM_DEV_ERROR_DETECT  STD_OFF\r
 \r
-#include "EcuM_Generated_Types.h"\r
-\r
 #define ECUM_MAIN_FUNCTION_PERIOD  (200)\r
 #define ECUM_NVRAM_READALL_TIMEOUT (10000)\r
 #define ECUM_NVRAM_WRITEALL_TIMEOUT (10000)\r
@@ -40,7 +37,5 @@ typedef enum {
 } EcuM_UserList;\r
 \r
 \r
-extern EcuM_ConfigType EcuMConfig;\r
-\r
 #endif /*ECUM_CFG_H_*/\r
 \r
index e912a714aecdbba276e60c5f225f686c5f3531a8..005242acabbb4277dbf9ddb5716f100ecf2a439f 100644 (file)
@@ -10,7 +10,6 @@
 * Generator version:       2.0.2\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
-*           on Thu Jun 16 20:14:36 CEST 2011\r
 */\r
 \r
 
 #ifndef _ECUM_GENERATED_TYPES_H_\r
 #define _ECUM_GENERATED_TYPES_H_\r
 \r
+#if (ECUM_USE_SERVICE_PORTS == STD_ON) && defined(USE_RTE)\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_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
@@ -101,12 +128,18 @@ typedef struct
 #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
@@ -125,6 +158,21 @@ typedef struct
 #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
diff --git a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_PBcfg.c b/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_PBcfg.c
new file mode 100644 (file)
index 0000000..3987fa3
--- /dev/null
@@ -0,0 +1,119 @@
+/*\r
+* Configuration of module: EcuM (EcuM_PBcfg.c)\r
+*\r
+* Created by:              \r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    MPC560x\r
+*\r
+* Module vendor:           ArcCore\r
+* Generator version:       2.0.2\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
+#if defined(USE_CANSM)\r
+extern const CanSM_ConfigType CanSM_Config;\r
+#endif\r
+#if defined(USE_NM)\r
+extern const Nm_ConfigType Nm_Config;\r
+#endif\r
+#if defined(USE_CANNM)\r
+extern const CanNm_ConfigType CanNm_Config;\r
+#endif\r
+#if defined(USE_UDPNM)\r
+extern const UdpNm_ConfigType UdpNm_Config;\r
+#endif\r
+#if defined(USE_COMM)\r
+extern const ComM_ConfigType ComM_Config;\r
+#endif\r
+\r
+#if defined(USE_J1939TP)\r
+extern const J1939Tp_ConfigType J1939Tp_Config;\r
+#endif\r
+\r
+\r
+EcuM_ConfigType EcuMConfig =\r
+{\r
+       .EcuMDefaultShutdownTarget = ECUM_STATE_RESET,\r
+       .EcuMDefaultSleepMode = 0, // Don't care\r
+       .EcuMDefaultAppMode = OSDEFAULTAPPMODE,\r
+       .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT,\r
+       .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT,\r
+       .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION,\r
+\r
+#if defined(USE_MCU)\r
+        .McuConfig = McuConfigData,\r
+#endif\r
+#if defined(USE_PORT)\r
+        .PortConfig = &PortConfigData,\r
+#endif\r
+#if defined(USE_CAN)\r
+        .CanConfig = &CanConfigData,\r
+#endif\r
+#if defined(USE_CANIF)\r
+        .CanIfConfig = &CanIf_Config,\r
+#endif\r
+#if defined(USE_CANSM)\r
+        .CanSMConfig = &CanSM_Config,\r
+#endif\r
+#if defined(USE_CANNM)\r
+        .CanNmConfig = &CanNm_Config,\r
+#endif\r
+#if defined(USE_UDPNM)\r
+        .UdpNmConfig = &UdpNm_Config,\r
+#endif\r
+#if defined(USE_COM)\r
+        .ComConfig = &ComConfiguration,\r
+#endif\r
+#if defined(USE_COMM)\r
+        .ComMConfig = &ComM_Config,\r
+#endif\r
+#if defined(USE_J1939TP)\r
+        .J1939TpConfig = &J1939Tp_Config,\r
+#endif\r
+#if defined(USE_NM)\r
+        .NmConfig = &Nm_Config,\r
+#endif\r
+#if defined(USE_PDUR)\r
+        .PduRConfig = &PduR_Config,\r
+#endif\r
+#if defined(USE_J1939TP)\r
+        .J1939TpConfig = &J1939Tp_Config,\r
+#endif\r
+#if defined(USE_DMA)\r
+        .DmaConfig = DmaConfig,\r
+#endif\r
+#if defined(USE_ADC)\r
+        .AdcConfig = AdcConfig,\r
+#endif\r
+#if defined(USE_PWM)\r
+        .PwmConfig = &PwmConfig,\r
+#endif\r
+#if defined(USE_WDG)\r
+    .WdgConfig = &WdgConfig,\r
+#endif\r
+#if defined(USE_WDGM)\r
+    .WdgMConfig = &WdgMConfig,\r
+#endif\r
+#if defined(USE_WDGIF)\r
+    .WdgIfConfig = &WdgIfConfig,\r
+#endif\r
+#if defined(USE_GPT)\r
+        .GptConfig = GptConfigData,\r
+#endif\r
+#if defined(USE_FLS)\r
+       .FlashConfig = FlsConfigSet,\r
+#endif\r
+#if defined(USE_EEP)\r
+       .EepConfig = EepConfigData,\r
+#endif\r
+#if defined(USE_SPI)\r
+       .SpiConfig = &SpiConfigData,\r
+#endif\r
+};\r
index a76c134cf317ebbd7be7751ddda6731dfffbf33a..7b2cc6df74f4b019dc763f57129322ec50c9efbc 100644 (file)
@@ -1,84 +1,47 @@
-/* -------------------------------- Arctic Core ------------------------------\r
- * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
- *\r
- * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
- *\r
- * This source code is free software; you can redistribute it and/or modify it\r
- * under the terms of the GNU General Public License version 2 as published by the\r
- * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
- *\r
- * This program is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
- * for more details.\r
- * -------------------------------- Arctic Core ------------------------------*/\r
+/*\r
+* Configuration of module: Mcu (Mcu_Cfg.c)\r
+*\r
+* Created by:              \r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    MPC560x\r
+*\r
+* Module vendor:           ArcCore\r
+* Generator version:       2.0.3\r
+*\r
+* Generated by Arctic Studio (http://arccore.com) \r
+*/\r
 \r
-#warning "This default file may only be used as an example!"\r
 \r
 #ifndef MCU_CFG_C_\r
 #define MCU_CFG_C_\r
 \r
 #include "Mcu.h"\r
 \r
-Mcu_RamSectorSettingConfigType Mcu_RamSectorSettingConfigData[] =\r
-{\r
-       {\r
-               // This parameter shall represent the Data pre-setting to be initialized\r
-               .McuRamDefaultValue = 0,\r
-\r
-               // This parameter shall represent the MCU RAM section base address\r
-               .McuRamSectionBaseAddress = 0,\r
 \r
-               // This parameter shall represent the MCU RAM Section size\r
-               .McuRamSectionSize = 0xFF,\r
-       }\r
+Mcu_RamSectorSettingConfigType Mcu_RamSectorSettingConfigData[] = {\r
 };\r
 \r
 Mcu_ClockSettingConfigType Mcu_ClockSettingConfigData[] =\r
 {\r
-       {\r
-               .McuClockReferencePointFrequency = 8000000UL,\r
-               .Pll1 = 0,\r
-               .Pll2 = 64,\r
-               .Pll3 = 2,\r
-       },\r
-       {\r
-               .McuClockReferencePointFrequency = 16000000UL,\r
-               .Pll1 = 0,\r
-               .Pll2 = 64,\r
-               .Pll3 = 3,\r
-       }\r
+  {\r
+    .McuClockReferencePointFrequency = 8000000UL,\r
+    .Pll1    = 0,\r
+    .Pll2    = 64,\r
+    .Pll3    = 2,\r
+  },\r
 };\r
 \r
-const Mcu_ConfigType McuConfigData[] =\r
-{\r
-       {\r
-               //  Enables/Disables clock failure notification. In case this feature is not supported\r
-               //  by HW the setting should be disabled.\r
-               .McuClockSrcFailureNotification = 0,\r
-\r
-               //  This parameter shall represent the number of RAM sectors available for\r
-               //  the MCU. calculationFormula = Number of configured McuRamSectorSet-\r
-               //  tingConf\r
-               .McuRamSectors = 1,\r
-\r
-               //  This parameter shall represent the number of clock setting available for\r
-               //  the MCU.\r
-               .McuClockSettings = MCU_NBR_OF_CLOCKS,\r
-\r
-               // Default clock frequency used\r
-               .McuDefaultClockSettings = MCU_CLOCKTYPE_EXT_REF_8MHZ,\r
-\r
-               //  This container contains the configuration (parameters) for the\r
-               //  Clock settings of the MCU. Please see MCU031 for more in-\r
-               //  formation on the MCU clock settings.\r
-               .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
 \r
-               //  This container contains the configuration (parameters) for the\r
-               //  RAM Sector setting. Please see MCU030 for more information\r
-               //  on RAM sec-tor settings.\r
-               .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
-       },\r
+const Mcu_ConfigType McuConfigData[] = {\r
+  {\r
+       .McuClockSrcFailureNotification = 0,\r
+       .McuRamSectors = MCU_NBR_OF_RAM_SECTIONS,\r
+       .McuClockSettings = 1,\r
+       .McuDefaultClockSettings = 0,\r
+       .McuClockSettingConfig = &Mcu_ClockSettingConfigData[0],\r
+       .McuRamSectorSettingConfig = &Mcu_RamSectorSettingConfigData[0],\r
+  }\r
 };\r
 \r
 #endif /*MCU_CFG_C_*/\r
index 92be01f2c8953659758741406890ea26a392db08..6631e08a0bd57f0efba582b6a8b59c74561833de 100644 (file)
@@ -1,52 +1,40 @@
-/* -------------------------------- Arctic Core ------------------------------\r
- * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
- *\r
- * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
- *\r
- * This source code is free software; you can redistribute it and/or modify it\r
- * under the terms of the GNU General Public License version 2 as published by the\r
- * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
- *\r
- * This program is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
- * for more details.\r
- * -------------------------------- Arctic Core ------------------------------*/\r
-\r
-/** @addtogroup Mcu MCU Driver\r
- *  @{ */\r
-\r
-/** @file Mcu_Cfg.h\r
- *  Definitions of configuration parameters for MCU Driver.\r
- */\r
-\r
-#warning "This default file may only be used as an example!"\r
+/*\r
+* Configuration of module: Mcu (Mcu_Cfg.h)\r
+*\r
+* Created by:              \r
+* Copyright:               \r
+*\r
+* Configured for (MCU):    MPC560x\r
+*\r
+* Module vendor:           ArcCore\r
+* Generator version:       2.0.3\r
+*\r
+* Generated by Arctic Studio (http://arccore.com) \r
+*/\r
+\r
+
+#if !(((MCU_SW_MAJOR_VERSION == 2) && (MCU_SW_MINOR_VERSION == 0)) )
+#error Mcu: Configuration file expected BSW module version to be 2.0.*
+#endif
+
 \r
 #ifndef MCU_CFG_H_\r
 #define MCU_CFG_H_\r
 \r
-#include "mpc5606s.h"\r
 \r
-/** Enable Development Error Trace */\r
-#define MCU_DEV_ERROR_DETECT   STD_ON\r
-/** Enable/disable the use of the function Mcu_PerformReset() */\r
+#define MCU_DEV_ERROR_DETECT   STD_OFF \r
 #define MCU_PERFORM_RESET_API  STD_ON\r
-/** Build version info API */\r
 #define MCU_VERSION_INFO_API   STD_ON\r
 \r
-#include "Std_Types.h"\r
+typedef enum {\r
+       MCU_CLOCKTYPE_Clock = 0,\r
+  MCU_NBR_OF_CLOCKS,\r
+} Mcu_ClockType;\r
 \r
 \r
-/** Symbolic names for clock settings */\r
-typedef enum\r
-{\r
-       MCU_CLOCKTYPE_EXT_REF_8MHZ = 0,\r
-       MCU_CLOCKTYPE_EXT_REF_16MHZ,\r
-       MCU_NBR_OF_CLOCKS,\r
-} Mcu_ClockType;\r
+#define MCU_NBR_OF_RAM_SECTIONS        0\r
 \r
 \r
 #define MCU_DEFAULT_CONFIG McuConfigData[0]\r
 \r
 #endif /*MCU_CFG_H_*/\r
-/** @} */\r
index 986f146ba194d441d3130a0f5f7cf9f93841f904..87638389b7ad130d18ebf0c05f7c9a64a5b8e9f6 100644 (file)
@@ -10,7 +10,6 @@
 * Generator version:       2.0.34\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
-*           on Thu Jun 16 20:13:48 CEST 2011\r
 */\r
 \r
        \r
index 012b36fbb15d36aab3ca1a200fb188ced00f8a79..a57e11fa9e3102eee829006272e2a0bba7818fe5 100644 (file)
@@ -10,7 +10,6 @@
 * Generator version:       2.0.34\r
 *\r
 * Generated by Arctic Studio (http://arccore.com) \r
-*           on Thu Jun 16 20:13:48 CEST 2011\r
 */\r
 \r
 
@@ -100,8 +99,8 @@ void eTask2( void );
 //#define OS_SC3                                       STD_ON  /* NOT CONFIGURABLE IN TOOLS */  \r
 #define OS_STACK_MONITORING                    STD_ON\r
 #define OS_STATUS_EXTENDED                     STD_ON\r
-#define OS_USE_GET_SERVICE_ID          STD_ON\r
-#define OS_USE_PARAMETER_ACCESS                STD_ON\r
+#define OS_USE_GET_SERVICE_ID          STD_ON  /* NOT CONFIGURABLE IN TOOLS */\r
+#define OS_USE_PARAMETER_ACCESS                STD_ON  /* NOT CONFIGURABLE IN TOOLS */\r
 #define OS_RES_SCHEDULER                       STD_ON  /* NOT CONFIGURABLE IN TOOLS */\r
 \r
 #define OS_ISR_CNT                     0\r
index 48ae835e24d9e7cda03b271f11f58065b1ab230f..fa6064ef6cbddb521ebee5d1d7d72787c53ef5e8 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
-<AUTOSAR xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://autosar.org/3.1.5" xsi:schemaLocation="http://autosar.org/3.1.5 autosar_3-1-5.xsd"><TOP-LEVEL-PACKAGES>\r
+<AUTOSAR xmlns="http://autosar.org/3.1.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/3.1.5 autosar_3-1-5.xsd">\r
+  <TOP-LEVEL-PACKAGES>\r
     <AR-PACKAGE>\r
       <SHORT-NAME>os_simple_mpc5606s_xpc560s</SHORT-NAME>\r
       <ELEMENTS>\r
@@ -7,12 +8,12 @@
           <SHORT-NAME>os_simple_mpc5606s_xpc560s</SHORT-NAME>\r
           <ADMIN-DATA>\r
             <DOC-REVISIONS>\r
-              <DOC-REVISION/>\r
+              <DOC-REVISION />\r
             </DOC-REVISIONS>\r
             <SDGS>\r
               <SDG GID="Arccore::EcuOptions">\r
                 <SD GID="MCU">MPC560x</SD>\r
-                <SD GID="GENDIR">${RESOURCE_LOC}/config</SD>\r
+                <SD GID="GENDIR">/arc/boards/mpc5606s_xpc560s/examples/os_simple/config</SD>\r
               </SDG>\r
             </SDGS>\r
           </ADMIN-DATA>\r
@@ -20,6 +21,7 @@
           <MODULE-REFS>\r
             <MODULE-REF DEST="MODULE-CONFIGURATION">/os_simple_mpc5606s_xpc560s/Os</MODULE-REF>\r
             <MODULE-REF DEST="MODULE-CONFIGURATION">/os_simple_mpc5606s_xpc560s/EcuM</MODULE-REF>\r
+            <MODULE-REF DEST="MODULE-CONFIGURATION">/os_simple_mpc5606s_xpc560s/Mcu</MODULE-REF>\r
           </MODULE-REFS>\r
         </ECU-CONFIGURATION>\r
         <ECU-SW-COMPOSITION UUID="8faadc86-f4b0-4ea7-bc7f-17e18f5c4081">\r
@@ -29,7 +31,7 @@
           <SHORT-NAME>Os</SHORT-NAME>\r
           <ADMIN-DATA>\r
             <SDGS>\r
-              <SDG/>\r
+              <SDG />\r
               <SDG GID="Arccore::ModuleOptions">\r
                 <SD GID="GENERATE_AND_VALIDATE">true</SD>\r
                 <SD GID="ARCCORE_EDITOR_VERSION">2.0.22</SD>\r
               <SHORT-NAME>Alarm1</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsAlarm</DEFINITION-REF>\r
               <SHORT-NAME>bTask3</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsTask</DEFINITION-REF>\r
               <SHORT-NAME>eTask1</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsTask</DEFINITION-REF>\r
               <SHORT-NAME>eTask2</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsTask</DEFINITION-REF>\r
               <SHORT-NAME>Event1</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsEvent</DEFINITION-REF>\r
               <SHORT-NAME>Event2</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsEvent</DEFINITION-REF>\r
               <SHORT-NAME>OsApplication1</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsApplication</DEFINITION-REF>\r
               <SHORT-NAME>Counter1</SHORT-NAME>\r
               <ADMIN-DATA>\r
                 <SDGS>\r
-                  <SDG GID="Arccore::IdentifiableOptions"/>\r
+                  <SDG GID="Arccore::IdentifiableOptions" />\r
                 </SDGS>\r
               </ADMIN-DATA>\r
               <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Os/OsCounter</DEFINITION-REF>\r
           <SHORT-NAME>EcuM</SHORT-NAME>\r
           <ADMIN-DATA>\r
             <SDGS>\r
-              <SDG/>\r
+              <SDG />\r
               <SDG GID="Arccore::ModuleOptions">\r
                 <SD GID="GENERATE_AND_VALIDATE">true</SD>\r
                 <SD GID="ARCCORE_EDITOR_VERSION">2.0.2</SD>\r
             </CONTAINER>\r
           </CONTAINERS>\r
         </MODULE-CONFIGURATION>\r
+        <MODULE-CONFIGURATION UUID="7082fa10-dc97-4589-8b88-3b4731e5dc35">\r
+          <SHORT-NAME>Mcu</SHORT-NAME>\r
+          <ADMIN-DATA>\r
+            <SDGS>\r
+              <SDG />\r
+              <SDG GID="Arccore::ModuleOptions">\r
+                <SD GID="GENERATE_AND_VALIDATE">true</SD>\r
+                <SD GID="ARCCORE_EDITOR_VERSION">2.0.3</SD>\r
+              </SDG>\r
+            </SDGS>\r
+          </ADMIN-DATA>\r
+          <DEFINITION-REF DEST="MODULE-DEF">/ArcCore/Mcu</DEFINITION-REF>\r
+          <CONTAINERS>\r
+            <CONTAINER UUID="9ba67196-0c89-4417-907c-0973ed10776d">\r
+              <SHORT-NAME>McuGeneralConfiguration</SHORT-NAME>\r
+              <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Mcu/McuGeneralConfiguration</DEFINITION-REF>\r
+              <PARAMETER-VALUES>\r
+                <BOOLEAN-VALUE>\r
+                  <DEFINITION-REF DEST="BOOLEAN-PARAM-DEF">/ArcCore/Mcu/McuGeneralConfiguration/McuDevErrorDetect</DEFINITION-REF>\r
+                  <VALUE>false</VALUE>\r
+                </BOOLEAN-VALUE>\r
+                <BOOLEAN-VALUE>\r
+                  <DEFINITION-REF DEST="BOOLEAN-PARAM-DEF">/ArcCore/Mcu/McuGeneralConfiguration/McuPerformResetApi</DEFINITION-REF>\r
+                  <VALUE>true</VALUE>\r
+                </BOOLEAN-VALUE>\r
+                <BOOLEAN-VALUE>\r
+                  <DEFINITION-REF DEST="BOOLEAN-PARAM-DEF">/ArcCore/Mcu/McuGeneralConfiguration/McuVersionInfoApi</DEFINITION-REF>\r
+                  <VALUE>true</VALUE>\r
+                </BOOLEAN-VALUE>\r
+              </PARAMETER-VALUES>\r
+            </CONTAINER>\r
+            <CONTAINER UUID="ece9fa95-a839-45dc-b4f2-3b79bcc3f402">\r
+              <SHORT-NAME>McuModuleConfiguration</SHORT-NAME>\r
+              <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Mcu/McuModuleConfiguration</DEFINITION-REF>\r
+              <PARAMETER-VALUES>\r
+                <ENUMERATION-VALUE>\r
+                  <DEFINITION-REF DEST="ENUMERATION-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSrcFailureNotification</DEFINITION-REF>\r
+                  <VALUE>DISABLED</VALUE>\r
+                </ENUMERATION-VALUE>\r
+                <INTEGER-VALUE>\r
+                  <DEFINITION-REF DEST="DERIVED-INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuNumberOfMcuModes</DEFINITION-REF>\r
+                  <VALUE>0</VALUE>\r
+                </INTEGER-VALUE>\r
+                <INTEGER-VALUE>\r
+                  <DEFINITION-REF DEST="DERIVED-INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuRamSectors</DEFINITION-REF>\r
+                  <VALUE>1</VALUE>\r
+                </INTEGER-VALUE>\r
+                <INTEGER-VALUE>\r
+                  <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuResetSetting</DEFINITION-REF>\r
+                  <VALUE>0</VALUE>\r
+                </INTEGER-VALUE>\r
+              </PARAMETER-VALUES>\r
+              <SUB-CONTAINERS>\r
+                <CONTAINER UUID="441cbfe6-45cf-45fb-945d-cc2c514a2493">\r
+                  <SHORT-NAME>McuClockSettingConfig</SHORT-NAME>\r
+                  <DEFINITION-REF DEST="PARAM-CONF-CONTAINER-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig</DEFINITION-REF>\r
+                  <REFERENCE-VALUES>\r
+                    <REFERENCE-VALUE>\r
+                      <DEFINITION-REF DEST="REFERENCE-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuDefaultClockReference</DEFINITION-REF>\r
+                      <VALUE-REF DEST="CONTAINER">/os_simple_mpc5606s_xpc560s/Mcu/McuModuleConfiguration/McuClockSettingConfig/Clock</VALUE-REF>\r
+                    </REFERENCE-VALUE>\r
+                  </REFERENCE-VALUES>\r
+                  <SUB-CONTAINERS>\r
+                    <CONTAINER UUID="f5ad08a7-b8f2-4a5f-a547-37ace7807989">\r
+                      <SHORT-NAME>Clock</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/McuClockSettingConfig/McuClockReferencePoint</DEFINITION-REF>\r
+                      <PARAMETER-VALUES>\r
+                        <FLOAT-VALUE>\r
+                          <DEFINITION-REF DEST="FLOAT-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointFrequency</DEFINITION-REF>\r
+                          <VALUE>8000000.0</VALUE>\r
+                        </FLOAT-VALUE>\r
+                        <INTEGER-VALUE>\r
+                          <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllEprediv</DEFINITION-REF>\r
+                          <VALUE>0</VALUE>\r
+                        </INTEGER-VALUE>\r
+                        <INTEGER-VALUE>\r
+                          <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllEmfd</DEFINITION-REF>\r
+                          <VALUE>64</VALUE>\r
+                        </INTEGER-VALUE>\r
+                        <INTEGER-VALUE>\r
+                          <DEFINITION-REF DEST="INTEGER-PARAM-DEF">/ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllErfd</DEFINITION-REF>\r
+                          <VALUE>2</VALUE>\r
+                        </INTEGER-VALUE>\r
+                      </PARAMETER-VALUES>\r
+                    </CONTAINER>\r
+                  </SUB-CONTAINERS>\r
+                </CONTAINER>\r
+                <CONTAINER UUID="0cef449c-7063-4004-8fc9-5bb74239ba7b">\r
+                  <SHORT-NAME>McuModeSettingConf</SHORT-NAME>\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
+              </SUB-CONTAINERS>\r
+            </CONTAINER>\r
+          </CONTAINERS>\r
+        </MODULE-CONFIGURATION>\r
       </ELEMENTS>\r
     </AR-PACKAGE>\r
-  </TOP-LEVEL-PACKAGES></AUTOSAR>\r
+  </TOP-LEVEL-PACKAGES>\r
+</AUTOSAR>\r
+\r