halconf.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
3  2011,2012 Giovanni Di Sirio.
4 
5  This file is part of ChibiOS/RT.
6 
7  ChibiOS/RT is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  ChibiOS/RT is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20  ---
21 
22  A special exception to the GPL can be applied should you wish to distribute
23  a combined work that includes ChibiOS/RT, without being obliged to provide
24  the source code for any proprietary components. See the file exception.txt
25  for full details of how and when the exception can be applied.
26 */
27 
39 #ifndef _HALCONF_H_
40 #define _HALCONF_H_
41 
42 #include "mcuconf.h"
43 
47 #if !defined(HAL_USE_TM) || defined(__DOXYGEN__)
48 #define HAL_USE_TM FALSE
49 #endif
50 
54 #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
55 #define HAL_USE_PAL TRUE
56 #endif
57 
61 #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
62 #define HAL_USE_ADC FALSE
63 #endif
64 
68 #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
69 #define HAL_USE_CAN TRUE
70 #endif
71 
75 #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
76 #define HAL_USE_EXT FALSE
77 #endif
78 
82 #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
83 #define HAL_USE_GPT FALSE
84 #endif
85 
89 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
90 #define HAL_USE_I2C TRUE
91 #endif
92 
96 #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
97 #define HAL_USE_ICU TRUE
98 #endif
99 
103 #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
104 #define HAL_USE_MAC FALSE
105 #endif
106 
110 #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
111 #define HAL_USE_MMC_SPI FALSE
112 #endif
113 
117 #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
118 #define HAL_USE_PWM FALSE
119 #endif
120 
124 #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
125 #define HAL_USE_RTC FALSE
126 #endif
127 
131 #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
132 #define HAL_USE_SDC FALSE
133 #endif
134 
138 #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
139 #define HAL_USE_SERIAL FALSE
140 #endif
141 
145 #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
146 #define HAL_USE_SERIAL_USB TRUE
147 #endif
148 
152 #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
153 #define HAL_USE_SPI FALSE
154 #endif
155 
159 #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
160 #define HAL_USE_UART TRUE
161 #endif
162 
166 #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
167 #define HAL_USE_USB TRUE
168 #endif
169 
170 /*===========================================================================*/
171 /* ADC driver related settings. */
172 /*===========================================================================*/
173 
178 #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
179 #define ADC_USE_WAIT TRUE
180 #endif
181 
186 #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
187 #define ADC_USE_MUTUAL_EXCLUSION TRUE
188 #endif
189 
190 /*===========================================================================*/
191 /* CAN driver related settings. */
192 /*===========================================================================*/
193 
197 #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
198 #define CAN_USE_SLEEP_MODE TRUE
199 #endif
200 
201 /*===========================================================================*/
202 /* I2C driver related settings. */
203 /*===========================================================================*/
204 
208 #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
209 #define I2C_USE_MUTUAL_EXCLUSION TRUE
210 #endif
211 
212 /*===========================================================================*/
213 /* MAC driver related settings. */
214 /*===========================================================================*/
215 
219 #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
220 #define MAC_USE_EVENTS TRUE
221 #endif
222 
223 /*===========================================================================*/
224 /* MMC_SPI driver related settings. */
225 /*===========================================================================*/
226 
230 #if !defined(MMC_SECTOR_SIZE) || defined(__DOXYGEN__)
231 #define MMC_SECTOR_SIZE 512
232 #endif
233 
242 #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
243 #define MMC_NICE_WAITING TRUE
244 #endif
245 
250 #if !defined(MMC_POLLING_INTERVAL) || defined(__DOXYGEN__)
251 #define MMC_POLLING_INTERVAL 10
252 #endif
253 
257 #if !defined(MMC_POLLING_DELAY) || defined(__DOXYGEN__)
258 #define MMC_POLLING_DELAY 10
259 #endif
260 
268 #if !defined(MMC_USE_SPI_POLLING) || defined(__DOXYGEN__)
269 #define MMC_USE_SPI_POLLING TRUE
270 #endif
271 
272 /*===========================================================================*/
273 /* SDC driver related settings. */
274 /*===========================================================================*/
275 
280 #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
281 #define SDC_INIT_RETRY 100
282 #endif
283 
289 #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
290 #define SDC_MMC_SUPPORT FALSE
291 #endif
292 
299 #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
300 #define SDC_NICE_WAITING TRUE
301 #endif
302 
303 /*===========================================================================*/
304 /* SERIAL driver related settings. */
305 /*===========================================================================*/
306 
312 #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
313 #define SERIAL_DEFAULT_BITRATE 38400
314 #endif
315 
323 #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
324 #define SERIAL_BUFFERS_SIZE 16
325 #endif
326 
327 /*===========================================================================*/
328 /* SPI driver related settings. */
329 /*===========================================================================*/
330 
335 #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
336 #define SPI_USE_WAIT TRUE
337 #endif
338 
343 #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
344 #define SPI_USE_MUTUAL_EXCLUSION TRUE
345 #endif
346 
347 #endif /* _HALCONF_H_ */
348