Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
halconf.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
3 
4  modified by: AggieAir, A Remote Sensing Unmanned Aerial System for Scientific Applications
5  Utah State University, http://aggieair.usu.edu/
6 
7  Michal Podhradsky (michal.podhradsky@aggiemail.usu.edu)
8  Calvin Coopmans (c.r.coopmans@ieee.org)
9 
10  Licensed under the Apache License, Version 2.0 (the "License");
11  you may not use this file except in compliance with the License.
12  You may obtain a copy of the License at
13 
14  http://www.apache.org/licenses/LICENSE-2.0
15 
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 */
22 
34 #ifndef _HALCONF_H_
35 #define _HALCONF_H_
36 
37 /* include board specific conf */
38 #include "mcuconf.h"
39 
43 #if !defined(HAL_USE_TM) || defined(__DOXYGEN__)
44 #define HAL_USE_TM FALSE
45 #endif
46 
50 #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
51 #define HAL_USE_PAL TRUE
52 #endif
53 
57 #if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
58 #if USE_ADC
59 #define HAL_USE_ADC TRUE
60 #else
61 #define HAL_USE_ADC FALSE
62 #endif
63 #endif
64 
68 #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
69 #if USE_CAN1 || USE_CAN2
70 #define HAL_USE_CAN TRUE
71 #else
72 #define HAL_USE_CAN FALSE
73 #endif
74 #endif
75 
76 
80 #if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
81 #if USE_DAC1 || USE_DAC2
82 #define HAL_USE_DAC TRUE
83 #else
84 #define HAL_USE_DAC FALSE
85 #endif
86 #endif
87 
91 #if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
92 #define HAL_USE_EXT FALSE
93 #endif
94 
98 #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
99 #define HAL_USE_GPT FALSE
100 #endif
101 
105 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
106 #if USE_I2C1 || USE_I2C2 || USE_I2C3
107 #define HAL_USE_I2C TRUE
108 #else
109 #define HAL_USE_I2C FALSE
110 #endif
111 #endif
112 
116 #if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
117 #define HAL_USE_I2S FALSE
118 #endif
119 
127 #if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
128 #define HAL_USE_ICU TRUE
129 #endif
130 
134 #if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
135 #define HAL_USE_MAC FALSE
136 #endif
137 
141 #if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
142 #define HAL_USE_MMC_SPI FALSE
143 #endif
144 
148 #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
149 #define HAL_USE_PWM TRUE
150 #endif
151 
155 #if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
156 #define HAL_USE_RTC FALSE
157 #endif
158 
162 #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
163 #define HAL_USE_SDC FALSE
164 #endif
165 
169 #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
170 #if USE_UART1 || USE_UART2 || USE_UART3 || USE_UART4 || USE_UART5 || USE_UART6
171 #define HAL_USE_SERIAL TRUE
172 #else
173 #define HAL_USE_SERIAL FALSE
174 #endif
175 #endif
176 
180 #if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
181 #if USE_USB_SERIAL
182 #define HAL_USE_SERIAL_USB TRUE
183 #else
184 #define HAL_USE_SERIAL_USB FALSE
185 #endif
186 #endif
187 
191 #if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
192 #if USE_SPI
193 #define HAL_USE_SPI TRUE
194 #else
195 #define HAL_USE_SPI FALSE
196 #endif
197 #endif
198 
202 #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
203 #define HAL_USE_UART FALSE
204 #endif
205 
209 #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
210 #if USE_USB_SERIAL
211 #define HAL_USE_USB TRUE
212 #else
213 #define HAL_USE_USB FALSE
214 #endif
215 #endif
216 
217 /*===========================================================================*/
218 /* ADC driver related settings. */
219 /*===========================================================================*/
220 
225 #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
226 #define ADC_USE_WAIT TRUE
227 #endif
228 
233 #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
234 #define ADC_USE_MUTUAL_EXCLUSION TRUE
235 #endif
236 
237 /*===========================================================================*/
238 /* CAN driver related settings. */
239 /*===========================================================================*/
240 
244 #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
245 #define CAN_USE_SLEEP_MODE TRUE
246 #endif
247 
248 /*===========================================================================*/
249 /* I2C driver related settings. */
250 /*===========================================================================*/
251 
255 #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
256 #define I2C_USE_MUTUAL_EXCLUSION TRUE
257 #endif
258 
259 /*===========================================================================*/
260 /* MAC driver related settings. */
261 /*===========================================================================*/
262 
266 #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
267 #define MAC_USE_ZERO_COPY FALSE
268 #endif
269 
273 #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
274 #define MAC_USE_EVENTS TRUE
275 #endif
276 
277 /*===========================================================================*/
278 /* MMC_SPI driver related settings. */
279 /*===========================================================================*/
280 
289 #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
290 #define MMC_NICE_WAITING TRUE
291 #endif
292 
293 /*===========================================================================*/
294 /* SDC driver related settings. */
295 /*===========================================================================*/
296 
301 #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
302 #define SDC_INIT_RETRY 100
303 #endif
304 
310 #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
311 #define SDC_MMC_SUPPORT FALSE
312 #endif
313 
320 #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
321 #define SDC_NICE_WAITING TRUE
322 #endif
323 
324 /*===========================================================================*/
325 /* SERIAL driver related settings. */
326 /*===========================================================================*/
327 
333 #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
334 #define SERIAL_DEFAULT_BITRATE 57600
335 #endif
336 
344 #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
345 #define SERIAL_BUFFERS_SIZE 1024
346 #endif
347 
348 /*===========================================================================*/
349 /* SPI driver related settings. */
350 /*===========================================================================*/
351 
356 #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
357 #define SPI_USE_WAIT TRUE
358 #endif
359 
364 #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
365 #define SPI_USE_MUTUAL_EXCLUSION TRUE
366 #endif
367 
368 #endif /* _HALCONF_H_ */
369