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 ------------------------------*/
17 #warning "This default file may only be used as an example!"
19 #if ((ECUM_SW_MAJOR_VERSION != 2) && (ECUM_SW_MINOR_VERSION != 0))
20 #error "EcuM: Configuration file version differs from BSW version."
24 #ifndef _ECUM_GENERATED_TYPES_H_
\r
25 #define _ECUM_GENERATED_TYPES_H_
\r
36 #if defined(USE_CANIF)
69 #if defined(USE_WDGIF)
78 #if defined(USE_CANNM)
81 #if defined(USE_CANSM)
84 #if defined(USE_LINSM)
88 typedef struct EcuM_Config
\r
90 EcuM_StateType EcuMDefaultShutdownTarget;
\r
91 uint8 EcuMDefaultSleepMode;
\r
92 AppModeType EcuMDefaultAppMode;
\r
93 uint32 EcuMRunMinimumDuration;
94 uint32 EcuMNvramReadAllTimeout;
95 uint32 EcuMNvramWriteAllTimeout;
98 const Mcu_ConfigType* McuConfig;
100 #if defined(USE_PORT)
101 const Port_ConfigType* PortConfig;
104 const Can_ConfigType* CanConfig;
106 #if defined(USE_CANIF)
107 const CanIf_ConfigType* CanIfConfig;
109 #if defined(USE_CANSM)
110 const CanSM_ConfigType* CanSMConfig;
113 const Nm_ConfigType* NmConfig;
115 #if defined(USE_CANNM)
116 const CanNm_ConfigType* CanNmConfig;
118 #if defined(USE_COMM)
119 const ComM_ConfigType* ComMConfig;
122 const Com_ConfigType* ComConfig;
124 #if defined(USE_PDUR)
125 const PduR_PBConfigType* PduRConfig;
128 const Pwm_ConfigType* PwmConfig;
131 const Dma_ConfigType* DmaConfig;
134 const Adc_ConfigType* AdcConfig;
137 const Wdg_ConfigType* WdgConfig;
139 #if defined(USE_WDGIF)
140 const WdgIf_ConfigType* WdgIfConfig;
142 #if defined(USE_WDGM)
143 const WdgM_ConfigType* WdgMConfig;
146 const Gpt_ConfigType* GptConfig;
149 const Fls_ConfigType* FlashConfig;
152 const Eep_ConfigType* EepConfig;
155 const Spi_ConfigType* SpiConfig;
159 #endif /*_ECUM_GENERATED_TYPES_H_*/
\r