]> rtime.felk.cvut.cz Git - arc.git/blob - boards/generic/EcuM_Generated_Types.h
b9e0417ffa90e59776687fe24c3e5e21c6257557
[arc.git] / boards / generic / EcuM_Generated_Types.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
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>.
9  *
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
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17 #warning "This default file may only be used as an example!"
18
19 #if ((ECUM_SW_MAJOR_VERSION != 2) && (ECUM_SW_MINOR_VERSION != 0))
20 #error "EcuM: Configuration file version differs from BSW version."
21 #endif
22
23 \r
24 #ifndef _ECUM_GENERATED_TYPES_H_\r
25 #define _ECUM_GENERATED_TYPES_H_\r
26 \r
27 #if defined(USE_MCU)
28 #include "Mcu.h"
29 #endif
30 #if defined(USE_PORT)
31 #include "Port.h"
32 #endif
33 #if defined(USE_CAN)
34 #include "Can.h"
35 #endif
36 #if defined(USE_CANIF)
37 #include "CanIf.h"
38 #endif
39 #if defined(USE_PWM)
40 #include "Pwm.h"
41 #endif
42 #if defined(USE_COM)
43 #include "Com.h"
44 #endif
45 #if defined(USE_PDUR)
46 #include "PduR.h"
47 #endif
48 #if defined(USE_DMA)
49 #include "Dma.h"
50 #endif
51 #if defined(USE_ADC)
52 #include "Adc.h"
53 #endif
54 #if defined(USE_GPT)
55 #include "Gpt.h"
56 #endif
57 #if defined(USE_FLS)
58 #include "Fls.h"
59 #endif
60 #if defined(USE_EEP)
61 #include "Eep.h"
62 #endif
63 #if defined(USE_WDG)
64 #include "Wdg.h"
65 #endif
66 #if defined(USE_WDGM)
67 #include "WdgM.h"
68 #endif
69 #if defined(USE_WDGIF)
70 #include "WdgIf.h"
71 #endif
72 #if defined(USE_COMM)
73 #include "ComM.h"
74 #endif
75 #if defined(USE_NM)
76 #include "Nm.h"
77 #endif
78 #if defined(USE_CANNM)
79 #include "CanNm.h"
80 #endif
81 #if defined(USE_CANSM)
82 #include "CanSM.h"
83 #endif
84 #if defined(USE_LINSM)
85 #include "LinSM.h"
86 #endif\r
87 \r
88 typedef struct EcuM_Config\r
89 {\r
90         EcuM_StateType EcuMDefaultShutdownTarget;\r
91         uint8 EcuMDefaultSleepMode;\r
92         AppModeType EcuMDefaultAppMode;\r
93         uint32 EcuMRunMinimumDuration;
94         uint32 EcuMNvramReadAllTimeout;
95         uint32 EcuMNvramWriteAllTimeout;
96 \r
97 #if defined(USE_MCU)
98         const Mcu_ConfigType* McuConfig;
99 #endif
100 #if defined(USE_PORT)
101         const Port_ConfigType* PortConfig;
102 #endif
103 #if defined(USE_CAN)
104         const Can_ConfigType* CanConfig;
105 #endif
106 #if defined(USE_CANIF)
107         const CanIf_ConfigType* CanIfConfig;
108 #endif
109 #if defined(USE_CANSM)
110         const CanSM_ConfigType* CanSMConfig;
111 #endif
112 #if defined(USE_NM)
113         const Nm_ConfigType* NmConfig;
114 #endif
115 #if defined(USE_CANNM)
116         const CanNm_ConfigType* CanNmConfig;
117 #endif
118 #if defined(USE_COMM)
119         const ComM_ConfigType* ComMConfig;
120 #endif
121 #if defined(USE_COM)
122         const Com_ConfigType* ComConfig;
123 #endif
124 #if defined(USE_PDUR)
125         const PduR_PBConfigType* PduRConfig;
126 #endif
127 #if defined(USE_PWM)
128         const Pwm_ConfigType* PwmConfig;
129 #endif
130 #if defined(USE_DMA)
131         const Dma_ConfigType* DmaConfig;
132 #endif
133 #if defined(USE_ADC)
134     const Adc_ConfigType* AdcConfig;
135 #endif
136 #if defined(USE_WDG)
137     const Wdg_ConfigType* WdgConfig;
138 #endif
139 #if defined(USE_WDGIF)
140     const WdgIf_ConfigType* WdgIfConfig;
141 #endif
142 #if defined(USE_WDGM)
143     const WdgM_ConfigType* WdgMConfig;
144 #endif
145 #if defined(USE_GPT)
146     const Gpt_ConfigType* GptConfig;
147 #endif
148 #if defined(USE_FLS)
149         const Fls_ConfigType* FlashConfig;
150 #endif
151 #if defined(USE_EEP)
152         const Eep_ConfigType* EepConfig;
153 #endif
154 #if defined(USE_SPI)
155         const Spi_ConfigType* SpiConfig;
156 #endif
157 } EcuM_ConfigType;\r
158 \r
159 #endif /*_ECUM_GENERATED_TYPES_H_*/\r