]> rtime.felk.cvut.cz Git - arc.git/blob - boards/generic/EcuM_Generated_Types.h
Merge with a4b79e1fe6cd4aaaa0a8938d8126849ddcc2defd
[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_COMM)
70 #include "ComM.h"
71 #endif
72 #if defined(USE_NM)
73 #include "Nm.h"
74 #endif
75 #if defined(USE_CANNM)
76 #include "CanNm.h"
77 #endif
78 #if defined(USE_CANSM)
79 #include "CanSM.h"
80 #endif
81 #if defined(USE_LINSM)
82 #include "LinSM.h"
83 #endif\r
84 \r
85 typedef struct\r
86 {\r
87         EcuM_StateType EcuMDefaultShutdownTarget;\r
88         uint8 EcuMDefaultSleepMode;\r
89         AppModeType EcuMDefaultAppMode;\r
90         uint32 EcuMRunMinimumDuration;
91         uint32 EcuMNvramReadAllTimeout;
92         uint32 EcuMNvramWriteAllTimeout;
93 \r
94 #if defined(USE_MCU)
95         const Mcu_ConfigType* McuConfig;
96 #endif
97 #if defined(USE_PORT)
98         const Port_ConfigType* PortConfig;
99 #endif
100 #if defined(USE_CAN)
101         const Can_ConfigType* CanConfig;
102 #endif
103 #if defined(USE_CANIF)
104         const CanIf_ConfigType* CanIfConfig;
105 #endif
106 #if defined(USE_CANSM)
107         const CanSM_ConfigType* CanSMConfig;
108 #endif
109 #if defined(USE_NM)
110         const Nm_ConfigType* NmConfig;
111 #endif
112 #if defined(USE_CANNM)
113         const CanNm_ConfigType* CanNmConfig;
114 #endif
115 #if defined(USE_COMM)
116         const ComM_ConfigType* ComMConfig;
117 #endif
118 #if defined(USE_COM)
119         const Com_ConfigType* ComConfig;
120 #endif
121 #if defined(USE_PDUR)
122         const PduR_PBConfigType* PduRConfig;
123 #endif
124 #if defined(USE_PWM)
125         const Pwm_ConfigType* PwmConfig;
126 #endif
127 #if defined(USE_DMA)
128         const Dma_ConfigType* DmaConfig;
129 #endif
130 #if defined(USE_ADC)
131     const Adc_ConfigType* AdcConfig;
132 #endif
133 #if defined(USE_WDG)
134     //const Wdg_ConfigType* WdgConfig; /* WDG is not AUTOSAR compliant for ArctiCore */
135 #endif
136 #if defined(USE_WDGM)
137     const WdgM_ConfigType* WdgMConfig;
138 #endif
139 #if defined(USE_GPT)
140     const Gpt_ConfigType* GptConfig;
141 #endif
142 #if defined(USE_FLS)
143         const Fls_ConfigType* FlashConfig;
144 #endif
145 #if defined(USE_EEP)
146         const Eep_ConfigType* EepConfig;
147 #endif
148 } EcuM_ConfigType;\r
149 \r
150 #endif /*_ECUM_GENERATED_TYPES_H_*/\r