1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
6 * This source code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * -------------------------------- Arctic Core ------------------------------*/
16 #warning "This default file may only be used as an example!"
20 #if defined(USE_CANSM)
21 extern const CanSM_ConfigType CanSM_Config;
24 extern const Nm_ConfigType Nm_Config;
26 #if defined(USE_CANNM)
27 extern const CanNm_ConfigType CanNm_Config;
30 extern const ComM_ConfigType ComM_Config;
33 EcuM_ConfigType EcuMConfig =
\r
35 .EcuMDefaultShutdownTarget = ECUM_STATE_RESET,
\r
36 .EcuMDefaultSleepMode = 0, // Don't care
\r
37 .EcuMDefaultAppMode = OSDEFAULTAPPMODE,
\r
38 .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT,
39 .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT,
40 .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION,
43 .McuConfig = McuConfigData,
46 .PortConfig = &PortConfigData,
49 .CanConfig = &CanConfigData,
51 #if defined(USE_CANIF)
52 .CanIfConfig = &CanIf_Config,
54 #if defined(USE_CANSM)
55 .CanSMConfig = &CanSM_Config,
57 #if defined(USE_CANNM)
58 .CanNmConfig = &CanNm_Config,
61 .ComConfig = &ComConfiguration,
64 .ComMConfig = &ComM_Config,
67 .NmConfig = &Nm_Config,
70 .PduRConfig = &PduR_Config,
73 .DmaConfig = DmaConfig,
76 .AdcConfig = AdcConfig,
79 .PwmConfig = &PwmConfig,
82 //.WdgConfig = &WdgConfig, /* WDG is not AUTOSAR compliant for ArctiCore */
85 .WdgMConfig = &WdgMConfig,
87 #if defined(USE_WDGIF)
88 .WdgIfConfig = &WdgIfConfig,
91 .GptConfig = GptConfigData,
94 .FlashConfig = FlsConfigSet,
97 .EepConfig = EepConfigData,
100 .SpiConfig = &SpiConfigData,