Revision 1e5f7648 modules/DiWheelDrive_1-1/halconf.h

View differences:

modules/DiWheelDrive_1-1/halconf.h
1 1
/*
2
 * AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
 * Copyright (C) 2016..2018  Thomas Schöpping et al.
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18

  
19
/**
20
 * @file    os/modules/DiWheelDrive/chconf.h
21
 * @brief   ChibiOS Configuration file for the DiWheelDrive v1.1 module.
22
 * @details Contains the application specific kernel settings.
23
 *
24
 * @addtogroup config
25
 * @details Kernel related settings and hooks.
26
 * @{
27
 */
28
/*
29 2
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
30 3
Copyright (C) 2016..2018  Thomas Schöpping et al.
31 4

  
......
57 30
#ifndef _HALCONF_H_
58 31
#define _HALCONF_H_
59 32

  
33
#define _CHIBIOS_HAL_CONF_
34
#define _CHIBIOS_HAL_CONF_VER_6_0_
35

  
36
#include "mcuconf.h"
37

  
60 38
/**
61 39
 * @brief   Enables the PAL subsystem.
62 40
 */
63 41
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
64
#define HAL_USE_PAL                 TRUE
42
#define HAL_USE_PAL                         TRUE
65 43
#endif
66 44

  
67 45
/**
68 46
 * @brief   Enables the ADC subsystem.
69 47
 */
70 48
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
71
#define HAL_USE_ADC                 FALSE
49
#define HAL_USE_ADC                         FALSE
72 50
#endif
73 51

  
74 52
/**
75 53
 * @brief   Enables the CAN subsystem.
76 54
 */
77 55
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
78
#define HAL_USE_CAN                 TRUE
56
#define HAL_USE_CAN                         TRUE
57
#endif
58

  
59
/**
60
 * @brief   Enables the cryptographic subsystem.
61
 */
62
#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
63
#define HAL_USE_CRY                         FALSE
79 64
#endif
80 65

  
81 66
/**
82 67
 * @brief   Enables the DAC subsystem.
83 68
 */
84 69
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
85
#define HAL_USE_DAC                 FALSE
70
#define HAL_USE_DAC                         FALSE
86 71
#endif
87 72

  
88 73
/**
89 74
 * @brief   Enables the EXT subsystem.
90 75
 */
91 76
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
92
#define HAL_USE_EXT                 FALSE
77
#define HAL_USE_EXT                         FALSE
93 78
#endif
94 79

  
95 80
/**
96 81
 * @brief   Enables the GPT subsystem.
97 82
 */
98 83
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
99
#define HAL_USE_GPT                 FALSE
84
#define HAL_USE_GPT                         FALSE
100 85
#endif
101 86

  
102 87
/**
103 88
 * @brief   Enables the I2C subsystem.
104 89
 */
105 90
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
106
#define HAL_USE_I2C                 TRUE
91
#define HAL_USE_I2C                         TRUE
107 92
#endif
108 93

  
109 94
/**
110 95
 * @brief   Enables the I2S subsystem.
111 96
 */
112 97
#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
113
#define HAL_USE_I2S                 FALSE
98
#define HAL_USE_I2S                         FALSE
114 99
#endif
115 100

  
116 101
/**
117 102
 * @brief   Enables the ICU subsystem.
118 103
 */
119 104
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
120
#define HAL_USE_ICU                 FALSE
105
#define HAL_USE_ICU                         FALSE
121 106
#endif
122 107

  
123 108
/**
124 109
 * @brief   Enables the MAC subsystem.
125 110
 */
126 111
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
127
#define HAL_USE_MAC                 FALSE
112
#define HAL_USE_MAC                         FALSE
128 113
#endif
129 114

  
130 115
/**
131 116
 * @brief   Enables the MMC_SPI subsystem.
132 117
 */
133 118
#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
134
#define HAL_USE_MMC_SPI             FALSE
119
#define HAL_USE_MMC_SPI                     FALSE
135 120
#endif
136 121

  
137 122
/**
138 123
 * @brief   Enables the PWM subsystem.
139 124
 */
140 125
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
141
#define HAL_USE_PWM                 TRUE
126
#define HAL_USE_PWM                         TRUE
127
#endif
128

  
129
/**
130
 * @brief   Enables the QSPI subsystem.
131
 */
132
#if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__)
133
#define HAL_USE_QSPI                        FALSE
142 134
#endif
143 135

  
144 136
/**
145 137
 * @brief   Enables the RTC subsystem.
146 138
 */
147 139
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
148
#define HAL_USE_RTC                 TRUE
140
#define HAL_USE_RTC                         TRUE
149 141
#endif
150 142

  
151 143
/**
152 144
 * @brief   Enables the SDC subsystem.
153 145
 */
154 146
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
155
#define HAL_USE_SDC                 FALSE
147
#define HAL_USE_SDC                         FALSE
156 148
#endif
157 149

  
158 150
/**
159 151
 * @brief   Enables the SERIAL subsystem.
160 152
 */
161 153
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
162
#define HAL_USE_SERIAL              TRUE
154
#define HAL_USE_SERIAL                      TRUE
163 155
#endif
164 156

  
165 157
/**
166 158
 * @brief   Enables the SERIAL over USB subsystem.
167 159
 */
168 160
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
169
#define HAL_USE_SERIAL_USB          FALSE
161
#define HAL_USE_SERIAL_USB                  FALSE
170 162
#endif
171 163

  
172 164
/**
173 165
 * @brief   Enables the SPI subsystem.
174 166
 */
175 167
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
176
#define HAL_USE_SPI                 TRUE
168
#define HAL_USE_SPI                         TRUE
177 169
#endif
178 170

  
179 171
/**
180 172
 * @brief   Enables the UART subsystem.
181 173
 */
182 174
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
183
#define HAL_USE_UART                FALSE
175
#define HAL_USE_UART                        FALSE
184 176
#endif
185 177

  
186 178
/**
187 179
 * @brief   Enables the USB subsystem.
188 180
 */
189 181
#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
190
#define HAL_USE_USB                 FALSE
182
#define HAL_USE_USB                         FALSE
191 183
#endif
192 184

  
193 185
/**
194 186
 * @brief   Enables the WDG subsystem.
195 187
 */
196 188
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
197
#define HAL_USE_WDG                 FALSE
189
#define HAL_USE_WDG                         FALSE
198 190
#endif
199 191

  
200 192
/**
201 193
 * @brief   Enables the QEI subsystem.
202 194
 */
203 195
#if !defined(HAL_USE_QEI) || defined(__DOXYGEN__)
204
#define HAL_USE_QEI                 TRUE
196
#define HAL_USE_QEI                         TRUE
197
#endif
198

  
199
/*===========================================================================*/
200
/* PAL driver related settings.                                              */
201
/*===========================================================================*/
202

  
203
/**
204
 * @brief   Enables synchronous APIs.
205
 * @note    Disabling this option saves both code and data space.
206
 */
207
#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
208
#define PAL_USE_CALLBACKS                   TRUE
209
#endif
210

  
211
/**
212
 * @brief   Enables synchronous APIs.
213
 * @note    Disabling this option saves both code and data space.
214
 */
215
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
216
#define PAL_USE_WAIT                        FALSE
205 217
#endif
206 218

  
207 219
/*===========================================================================*/
......
213 225
 * @note    Disabling this option saves both code and data space.
214 226
 */
215 227
#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
216
#define ADC_USE_WAIT                FALSE
228
#define ADC_USE_WAIT                        FALSE
217 229
#endif
218 230

  
219 231
/**
......
221 233
 * @note    Disabling this option saves both code and data space.
222 234
 */
223 235
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
224
#define ADC_USE_MUTUAL_EXCLUSION    FALSE
236
#define ADC_USE_MUTUAL_EXCLUSION            FALSE
225 237
#endif
226 238

  
227 239
/*===========================================================================*/
......
232 244
 * @brief   Sleep mode related APIs inclusion switch.
233 245
 */
234 246
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
235
#define CAN_USE_SLEEP_MODE          FALSE
247
#define CAN_USE_SLEEP_MODE                  FALSE
248
#endif
249

  
250
/**
251
 * @brief   Enforces the driver to use direct callbacks rather than OSAL events.
252
 */
253
#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
254
#define CAN_ENFORCE_USE_CALLBACKS           FALSE
255
#endif
256

  
257
/*===========================================================================*/
258
/* CRY driver related settings.                                              */
259
/*===========================================================================*/
260

  
261
/**
262
 * @brief   Enables the SW fall-back of the cryptographic driver.
263
 * @details When enabled, this option, activates a fall-back software
264
 *          implementation for algorithms not supported by the underlying
265
 *          hardware.
266
 * @note    Fall-back implementations may not be present for all algorithms.
267
 */
268
#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
269
#define HAL_CRY_USE_FALLBACK                FALSE
270
#endif
271

  
272
/**
273
 * @brief   Makes the driver forcibly use the fall-back implementations.
274
 */
275
#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
276
#define HAL_CRY_ENFORCE_FALLBACK            FALSE
277
#endif
278

  
279
/*===========================================================================*/
280
/* DAC driver related settings.                                              */
281
/*===========================================================================*/
282

  
283
/**
284
 * @brief   Enables synchronous APIs.
285
 * @note    Disabling this option saves both code and data space.
286
 */
287
#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
288
#define DAC_USE_WAIT                        TRUE
289
#endif
290

  
291
/**
292
 * @brief   Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
293
 * @note    Disabling this option saves both code and data space.
294
 */
295
#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
296
#define DAC_USE_MUTUAL_EXCLUSION            TRUE
236 297
#endif
237 298

  
238 299
/*===========================================================================*/
......
243 304
 * @brief   Enables the mutual exclusion APIs on the I2C bus.
244 305
 */
245 306
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
246
#define I2C_USE_MUTUAL_EXCLUSION    TRUE
307
#define I2C_USE_MUTUAL_EXCLUSION            TRUE
247 308
#endif
248 309

  
249 310
/*===========================================================================*/
......
251 312
/*===========================================================================*/
252 313

  
253 314
/**
254
 * @brief   Enables an event sources for incoming packets.
315
 * @brief   Enables the zero-copy API.
255 316
 */
256 317
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
257
#define MAC_USE_ZERO_COPY           FALSE
318
#define MAC_USE_ZERO_COPY                   FALSE
258 319
#endif
259 320

  
260 321
/**
261 322
 * @brief   Enables an event sources for incoming packets.
262 323
 */
263 324
#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
264
#define MAC_USE_EVENTS              FALSE
325
#define MAC_USE_EVENTS                      FALSE
265 326
#endif
266 327

  
267 328
/*===========================================================================*/
......
277 338
 *          use a DMA channel and heavily loads the CPU.
278 339
 */
279 340
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
280
#define MMC_NICE_WAITING            FALSE
341
#define MMC_NICE_WAITING                    FALSE
342
#endif
343

  
344
/*===========================================================================*/
345
/* QSPI driver related settings.                                             */
346
/*===========================================================================*/
347

  
348
/**
349
 * @brief   Enables synchronous APIs.
350
 * @note    Disabling this option saves both code and data space.
351
 */
352
#if !defined(QSPI_USE_WAIT) || defined(__DOXYGEN__)
353
#define QSPI_USE_WAIT                       TRUE
354
#endif
355

  
356
/**
357
 * @brief   Enables the @p qspiAcquireBus() and @p qspiReleaseBus() APIs.
358
 * @note    Disabling this option saves both code and data space.
359
 */
360
#if !defined(QSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
361
#define QSPI_USE_MUTUAL_EXCLUSION           TRUE
281 362
#endif
282 363

  
283 364
/*===========================================================================*/
......
289 370
 * @note    Attempts are performed at 10mS intervals.
290 371
 */
291 372
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
292
#define SDC_INIT_RETRY              100
373
#define SDC_INIT_RETRY                      100
293 374
#endif
294 375

  
295 376
/**
......
298 379
 *          at @p FALSE.
299 380
 */
300 381
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
301
#define SDC_MMC_SUPPORT             FALSE
382
#define SDC_MMC_SUPPORT                     FALSE
302 383
#endif
303 384

  
304 385
/**
......
308 389
 *          lower priority, this may slow down the driver a bit however.
309 390
 */
310 391
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
311
#define SDC_NICE_WAITING            FALSE
392
#define SDC_NICE_WAITING                    FALSE
393
#endif
394

  
395
/**
396
 * @brief   OCR initialization constant for V20 cards.
397
 */
398
#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
399
#define SDC_INIT_OCR_V20                    0x50FF8000U
400
#endif
401

  
402
/**
403
 * @brief   OCR initialization constant for non-V20 cards.
404
 */
405
#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
406
#define SDC_INIT_OCR                        0x80100000U
312 407
#endif
313 408

  
314 409
/*===========================================================================*/
......
321 416
 *          default configuration.
322 417
 */
323 418
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
324
#define SERIAL_DEFAULT_BITRATE      115200
419
#define SERIAL_DEFAULT_BITRATE              115200
325 420
#endif
326 421

  
327 422
/**
......
332 427
 *          buffers.
333 428
 */
334 429
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
335
#define SERIAL_BUFFERS_SIZE         16
430
#define SERIAL_BUFFERS_SIZE                 16
336 431
#endif
337 432

  
338 433
/*===========================================================================*/
......
347 442
 *          buffers.
348 443
 */
349 444
#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
350
#define SERIAL_USB_BUFFERS_SIZE     256
445
#define SERIAL_USB_BUFFERS_SIZE             256
351 446
#endif
352 447

  
353 448
/**
......
355 450
 * @note    The default is 2 buffers.
356 451
 */
357 452
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
358
#define SERIAL_USB_BUFFERS_NUMBER   2
453
#define SERIAL_USB_BUFFERS_NUMBER           2
359 454
#endif
360 455

  
361 456
/*===========================================================================*/
......
367 462
 * @note    Disabling this option saves both code and data space.
368 463
 */
369 464
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
370
#define SPI_USE_WAIT                TRUE
465
#define SPI_USE_WAIT                        TRUE
466
#endif
467

  
468
/**
469
 * @brief   Enables circular transfers APIs.
470
 * @note    Disabling this option saves both code and data space.
471
 */
472
#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
473
#define SPI_USE_CIRCULAR                    FALSE
371 474
#endif
372 475

  
476

  
373 477
/**
374 478
 * @brief   Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
375 479
 * @note    Disabling this option saves both code and data space.
376 480
 */
377 481
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
378
#define SPI_USE_MUTUAL_EXCLUSION    TRUE
482
#define SPI_USE_MUTUAL_EXCLUSION            TRUE
483
#endif
484

  
485
/**
486
 * @brief   Handling method for SPI CS line.
487
 * @note    Disabling this option saves both code and data space.
488
 */
489
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
490
#define SPI_SELECT_MODE                     SPI_SELECT_MODE_PAD
379 491
#endif
380 492

  
381 493
/*===========================================================================*/
......
387 499
 * @note    Disabling this option saves both code and data space.
388 500
 */
389 501
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
390
#define UART_USE_WAIT               FALSE
502
#define UART_USE_WAIT                       FALSE
391 503
#endif
392 504

  
393 505
/**
......
395 507
 * @note    Disabling this option saves both code and data space.
396 508
 */
397 509
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
398
#define UART_USE_MUTUAL_EXCLUSION   FALSE
510
#define UART_USE_MUTUAL_EXCLUSION           FALSE
399 511
#endif
400 512

  
401 513
/*===========================================================================*/
......
407 519
 * @note    Disabling this option saves both code and data space.
408 520
 */
409 521
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
410
#define USB_USE_WAIT                FALSE
522
#define USB_USE_WAIT                        FALSE
411 523
#endif
412 524

  
413 525
#endif /* _HALCONF_H_ */

Also available in: Unified diff