]> rtime.felk.cvut.cz Git - arc.git/blob - boards/generic/EcuM_Generated_Types.h
PCLint fixes for EcuM
[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_COMM)
58 #include "ComM.h"
59 #endif
60 #if defined(USE_NM)
61 #include "Nm.h"
62 #endif
63 #if defined(USE_CANNM)
64 #include "CanNm.h"
65 #endif
66 #if defined(USE_CANSM)
67 #include "CanSM.h"
68 #endif
69 #if defined(USE_LINSM)
70 #include "LinSM.h"
71 #endif\r
72 \r
73 typedef struct\r
74 {\r
75         EcuM_StateType EcuMDefaultShutdownTarget;\r
76         uint8 EcuMDefaultShutdownMode;\r
77         AppModeType EcuMDefaultAppMode;\r
78         uint32 EcuMRunMinimumDuration;
79         uint32 EcuMNvramReadAllTimeout;
80         uint32 EcuMNvramWriteAllTimeout;
81 \r
82 #if defined(USE_MCU)
83         const Mcu_ConfigType* McuConfig;
84 #endif
85 #if defined(USE_PORT)
86         const Port_ConfigType* PortConfig;
87 #endif
88 #if defined(USE_CAN)
89         const Can_ConfigType* CanConfig;
90 #endif
91 #if defined(USE_CANIF)
92         const CanIf_ConfigType* CanIfConfig;
93 #endif
94 #if defined(USE_CANSM)
95         const CanSM_ConfigType* CanSMConfig;
96 #endif
97 #if defined(USE_NM)
98         const Nm_ConfigType* NmConfig;
99 #endif
100 #if defined(USE_CANNM)
101         const CanNm_ConfigType* CanNmConfig;
102 #endif
103 #if defined(USE_COMM)
104         const ComM_ConfigType* ComMConfig;
105 #endif
106 #if defined(USE_COM)
107         const Com_ConfigType* ComConfig;
108 #endif
109 #if defined(USE_PDUR)
110         const PduR_PBConfigType* PduRConfig;
111 #endif
112 #if defined(USE_PWM)
113         const Pwm_ConfigType* PwmConfig;
114 #endif
115 #if defined(USE_DMA)
116         const Dma_ConfigType* DmaConfig;
117 #endif
118 #if defined(USE_ADC)
119     const Adc_ConfigType* AdcConfig;
120 #endif
121 #if defined(USE_GPT)
122     const Gpt_ConfigType* GptConfig;
123 #endif
124 #if defined(USE_FLS)
125         const Fls_ConfigType* FlashConfig;
126 #endif
127 } EcuM_ConfigType;\r
128 \r
129 #endif /*_ECUM_GENERATED_TYPES_H_*/\r