Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
halconf.h
Go to the documentation of this file.
1
/*
2
ChibiOS - Copyright (C) 2006..2018 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
modified by Gautier Hattenberger for STM32F7 support
11
12
Licensed under the Apache License, Version 2.0 (the "License");
13
you may not use this file except in compliance with the License.
14
You may obtain a copy of the License at
15
16
http://www.apache.org/licenses/LICENSE-2.0
17
18
Unless required by applicable law or agreed to in writing, software
19
distributed under the License is distributed on an "AS IS" BASIS,
20
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
See the License for the specific language governing permissions and
22
limitations under the License.
23
*/
24
36
#ifndef HALCONF_H
37
#define HALCONF_H
38
39
#define _CHIBIOS_HAL_CONF_
40
#define _CHIBIOS_HAL_CONF_VER_7_1_
41
42
#include "mcuconf.h"
43
47
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
48
#define HAL_USE_PAL TRUE
49
#endif
50
54
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
55
#if USE_ADC
56
#define HAL_USE_ADC TRUE
57
#else
58
#define HAL_USE_ADC FALSE
59
#endif
60
#endif
61
65
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
66
#if USE_CAN1 || USE_CAN2
67
#define HAL_USE_CAN TRUE
68
#else
69
#define HAL_USE_CAN FALSE
70
#endif
71
#endif
72
76
#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
77
#define HAL_USE_CRY FALSE
78
#endif
79
83
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
84
#if USE_DAC1 || USE_DAC2
85
#define HAL_USE_DAC TRUE
86
#else
87
#define HAL_USE_DAC FALSE
88
#endif
89
#endif
90
94
#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
95
#define HAL_USE_EFL FALSE
96
#endif
97
101
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
102
#define HAL_USE_GPT FALSE
103
#endif
104
108
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
109
#if USE_I2C1 || USE_I2C2 || USE_I2C3 || USE_I2C4
110
#define HAL_USE_I2C TRUE
111
#else
112
#define HAL_USE_I2C FALSE
113
#endif
114
#endif
115
119
#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
120
#define HAL_USE_I2S FALSE
121
#endif
122
130
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
131
#if RADIO_CONTROL_TYPE_PPM || USE_PWM_INPUT || defined USE_PWM_INPUT1 || defined USE_PWM_INPUT2
132
#define HAL_USE_ICU TRUE
133
#else
134
#define HAL_USE_ICU FALSE
135
#endif
136
#endif
137
141
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
142
#define HAL_USE_MAC FALSE
143
#endif
144
148
#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
149
#define HAL_USE_MMC_SPI FALSE
150
#endif
151
155
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
156
#define HAL_USE_PWM TRUE
157
#endif
158
162
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
163
#define HAL_USE_RTC FALSE
164
#endif
165
169
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
170
#define HAL_USE_SDC FALSE
171
#endif
172
176
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
177
#if USE_UART1 || USE_UART2 || USE_UART3 || USE_UART4 || USE_UART5 || USE_UART6 || USE_UART7 || USE_UART8
178
#define HAL_USE_SERIAL TRUE
179
#else
180
#define HAL_USE_SERIAL FALSE
181
#endif
182
#endif
183
187
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
188
#if USE_USB_SERIAL
189
#define HAL_USE_SERIAL_USB TRUE
190
#else
191
#define HAL_USE_SERIAL_USB FALSE
192
#endif
193
#endif
194
198
#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
199
#define HAL_USE_SIO FALSE
200
#endif
201
205
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
206
#if USE_SPI
207
#define HAL_USE_SPI TRUE
208
#else
209
#define HAL_USE_SPI FALSE
210
#endif
211
#endif
212
216
#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
217
#define HAL_USE_TRNG FALSE
218
#endif
219
223
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
224
#define HAL_USE_UART FALSE
225
#endif
226
230
#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
231
#if USE_USB_SERIAL
232
#define HAL_USE_USB TRUE
233
#else
234
#define HAL_USE_USB FALSE
235
#endif
236
#endif
237
241
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
242
#define HAL_USE_WDG FALSE
243
#endif
244
248
#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
249
#define HAL_USE_WSPI FALSE
250
#endif
251
252
/*===========================================================================*/
253
/* PAL driver related settings. */
254
/*===========================================================================*/
255
260
#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
261
#define PAL_USE_CALLBACKS FALSE
262
#endif
263
268
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
269
#define PAL_USE_WAIT TRUE
270
#endif
271
272
/*===========================================================================*/
273
/* ADC driver related settings. */
274
/*===========================================================================*/
275
280
#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
281
#define ADC_USE_WAIT TRUE
282
#endif
283
288
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
289
#define ADC_USE_MUTUAL_EXCLUSION TRUE
290
#endif
291
292
/*===========================================================================*/
293
/* CAN driver related settings. */
294
/*===========================================================================*/
295
299
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
300
#define CAN_USE_SLEEP_MODE TRUE
301
#endif
302
306
#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
307
#define CAN_ENFORCE_USE_CALLBACKS FALSE
308
#endif
309
310
/*===========================================================================*/
311
/* CRY driver related settings. */
312
/*===========================================================================*/
313
321
#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
322
#define HAL_CRY_USE_FALLBACK FALSE
323
#endif
324
328
#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
329
#define HAL_CRY_ENFORCE_FALLBACK FALSE
330
#endif
331
332
/*===========================================================================*/
333
/* DAC driver related settings. */
334
/*===========================================================================*/
335
340
#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
341
#define DAC_USE_WAIT TRUE
342
#endif
343
348
#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
349
#define DAC_USE_MUTUAL_EXCLUSION TRUE
350
#endif
351
352
/*===========================================================================*/
353
/* I2C driver related settings. */
354
/*===========================================================================*/
355
359
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
360
#define I2C_USE_MUTUAL_EXCLUSION TRUE
361
#endif
362
363
/*===========================================================================*/
364
/* MAC driver related settings. */
365
/*===========================================================================*/
366
370
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
371
#define MAC_USE_ZERO_COPY FALSE
372
#endif
373
377
#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
378
#define MAC_USE_EVENTS TRUE
379
#endif
380
381
/*===========================================================================*/
382
/* MMC_SPI driver related settings. */
383
/*===========================================================================*/
384
393
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
394
#define MMC_NICE_WAITING TRUE
395
#endif
396
397
/*===========================================================================*/
398
/* SDC driver related settings. */
399
/*===========================================================================*/
400
405
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
406
#define SDC_INIT_RETRY 100
407
#endif
408
414
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
415
#define SDC_MMC_SUPPORT FALSE
416
#endif
417
424
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
425
#define SDC_NICE_WAITING TRUE
426
#endif
427
431
#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
432
#define SDC_INIT_OCR_V20 0x50FF8000U
433
#endif
434
438
#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
439
#define SDC_INIT_OCR 0x80100000U
440
#endif
441
442
/*===========================================================================*/
443
/* SERIAL driver related settings. */
444
/*===========================================================================*/
445
451
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
452
#define SERIAL_DEFAULT_BITRATE 57600
453
#endif
454
462
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
463
#define SERIAL_BUFFERS_SIZE 1024
464
#endif
465
466
/*===========================================================================*/
467
/* SERIAL_USB driver related setting. */
468
/*===========================================================================*/
469
477
#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
478
#define SERIAL_USB_BUFFERS_SIZE 256
479
#endif
480
485
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
486
#define SERIAL_USB_BUFFERS_NUMBER 2
487
#endif
488
489
/*===========================================================================*/
490
/* SPI driver related settings. */
491
/*===========================================================================*/
492
497
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
498
#define SPI_USE_WAIT TRUE
499
#endif
500
505
#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
506
#define SPI_USE_CIRCULAR FALSE
507
#endif
508
513
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
514
#define SPI_USE_MUTUAL_EXCLUSION TRUE
515
#endif
516
521
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
522
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
523
#endif
524
525
/*===========================================================================*/
526
/* UART driver related settings. */
527
/*===========================================================================*/
528
533
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
534
#define UART_USE_WAIT FALSE
535
#endif
536
541
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
542
#define UART_USE_MUTUAL_EXCLUSION FALSE
543
#endif
544
545
/*===========================================================================*/
546
/* USB driver related settings. */
547
/*===========================================================================*/
548
553
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
554
#define USB_USE_WAIT FALSE
555
#endif
556
557
/*===========================================================================*/
558
/* WSPI driver related settings. */
559
/*===========================================================================*/
560
565
#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
566
#define WSPI_USE_WAIT TRUE
567
#endif
568
573
#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
574
#define WSPI_USE_MUTUAL_EXCLUSION TRUE
575
#endif
576
577
#endif
/* HALCONF_H */
578
sw
airborne
arch
chibios
halconf.h
Generated on Tue Feb 1 2022 13:51:12 for Paparazzi UAS by
1.8.17