dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
halconf.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 
31 #ifndef _HALCONF_H_
32 #define _HALCONF_H_
33 
34 #include "mcuconf.h"
35 
39 #if !defined(HAL_USE_TM) || defined(__DOXYGEN__)
40 #define HAL_USE_TM FALSE
41 #endif
42 
46 #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
47 #define HAL_USE_PAL FALSE
48 #endif
49 
53 #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
54 #define HAL_USE_ADC FALSE
55 #endif
56 
60 #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
61 #define HAL_USE_CAN FALSE
62 #endif
63 
67 #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
68 #define HAL_USE_EXT FALSE
69 #endif
70 
74 #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
75 #define HAL_USE_GPT FALSE
76 #endif
77 
81 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
82 #define HAL_USE_I2C FALSE
83 #endif
84 
88 #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
89 #define HAL_USE_ICU FALSE
90 #endif
91 
95 #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
96 #define HAL_USE_MAC FALSE
97 #endif
98 
102 #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
103 #define HAL_USE_MMC_SPI FALSE
104 #endif
105 
109 #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
110 #define HAL_USE_PWM FALSE
111 #endif
112 
116 #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
117 #define HAL_USE_RTC FALSE
118 #endif
119 
123 #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
124 #define HAL_USE_SDC FALSE
125 #endif
126 
130 #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
131 #define HAL_USE_SERIAL FALSE
132 #endif
133 
137 #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
138 #define HAL_USE_SERIAL_USB FALSE
139 #endif
140 
144 #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
145 #define HAL_USE_SPI FALSE
146 #endif
147 
151 #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
152 #define HAL_USE_UART FALSE
153 #endif
154 
158 #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
159 #define HAL_USE_USB FALSE
160 #endif
161 
162 /*===========================================================================*/
163 /* ADC driver related settings. */
164 /*===========================================================================*/
165 
170 #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
171 #define ADC_USE_WAIT TRUE
172 #endif
173 
178 #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
179 #define ADC_USE_MUTUAL_EXCLUSION TRUE
180 #endif
181 
182 /*===========================================================================*/
183 /* CAN driver related settings. */
184 /*===========================================================================*/
185 
189 #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
190 #define CAN_USE_SLEEP_MODE TRUE
191 #endif
192 
193 /*===========================================================================*/
194 /* I2C driver related settings. */
195 /*===========================================================================*/
196 
200 #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
201 #define I2C_USE_MUTUAL_EXCLUSION TRUE
202 #endif
203 
204 /*===========================================================================*/
205 /* MAC driver related settings. */
206 /*===========================================================================*/
207 
211 #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
212 #define MAC_USE_ZERO_COPY FALSE
213 #endif
214 
218 #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
219 #define MAC_USE_EVENTS TRUE
220 #endif
221 
222 /*===========================================================================*/
223 /* MMC_SPI driver related settings. */
224 /*===========================================================================*/
225 
234 #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
235 #define MMC_NICE_WAITING TRUE
236 #endif
237 
238 /*===========================================================================*/
239 /* SDC driver related settings. */
240 /*===========================================================================*/
241 
246 #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
247 #define SDC_INIT_RETRY 100
248 #endif
249 
255 #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
256 #define SDC_MMC_SUPPORT FALSE
257 #endif
258 
265 #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
266 #define SDC_NICE_WAITING TRUE
267 #endif
268 
269 /*===========================================================================*/
270 /* SERIAL driver related settings. */
271 /*===========================================================================*/
272 
278 #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
279 #define SERIAL_DEFAULT_BITRATE 38400
280 #endif
281 
289 #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
290 #define SERIAL_BUFFERS_SIZE 16
291 #endif
292 
293 /*===========================================================================*/
294 /* SPI driver related settings. */
295 /*===========================================================================*/
296 
301 #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
302 #define SPI_USE_WAIT TRUE
303 #endif
304 
309 #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
310 #define SPI_USE_MUTUAL_EXCLUSION TRUE
311 #endif
312 
313 #endif /* _HALCONF_H_ */
314