Revision 1e5f7648 modules/LightRing_1-0/halconf.h

View differences:

modules/LightRing_1-0/halconf.h
30 30
#ifndef _HALCONF_H_
31 31
#define _HALCONF_H_
32 32

  
33
#define _CHIBIOS_HAL_CONF_
34
#define _CHIBIOS_HAL_CONF_VER_6_0_
35

  
36
#include "mcuconf.h"
37

  
33 38
/**
34 39
 * @brief   Enables the PAL subsystem.
35 40
 */
36 41
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
37
#define HAL_USE_PAL                 TRUE
42
#define HAL_USE_PAL                         TRUE
38 43
#endif
39 44

  
40 45
/**
41 46
 * @brief   Enables the ADC subsystem.
42 47
 */
43 48
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
44
#define HAL_USE_ADC                 FALSE
49
#define HAL_USE_ADC                         FALSE
45 50
#endif
46 51

  
47 52
/**
48 53
 * @brief   Enables the CAN subsystem.
49 54
 */
50 55
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
51
#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
52 64
#endif
53 65

  
54 66
/**
55 67
 * @brief   Enables the DAC subsystem.
56 68
 */
57 69
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
58
#define HAL_USE_DAC                 FALSE
70
#define HAL_USE_DAC                         FALSE
59 71
#endif
60 72

  
61 73
/**
62 74
 * @brief   Enables the EXT subsystem.
63 75
 */
64 76
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
65
#define HAL_USE_EXT                 FALSE
77
#define HAL_USE_EXT                         FALSE
66 78
#endif
67 79

  
68 80
/**
69 81
 * @brief   Enables the GPT subsystem.
70 82
 */
71 83
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
72
#define HAL_USE_GPT                 FALSE
84
#define HAL_USE_GPT                         FALSE
73 85
#endif
74 86

  
75 87
/**
76 88
 * @brief   Enables the I2C subsystem.
77 89
 */
78 90
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
79
#define HAL_USE_I2C                 TRUE
91
#define HAL_USE_I2C                         TRUE
80 92
#endif
81 93

  
82 94
/**
83 95
 * @brief   Enables the I2S subsystem.
84 96
 */
85 97
#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
86
#define HAL_USE_I2S                 FALSE
98
#define HAL_USE_I2S                         FALSE
87 99
#endif
88 100

  
89 101
/**
90 102
 * @brief   Enables the ICU subsystem.
91 103
 */
92 104
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
93
#define HAL_USE_ICU                 FALSE
105
#define HAL_USE_ICU                         FALSE
94 106
#endif
95 107

  
96 108
/**
97 109
 * @brief   Enables the MAC subsystem.
98 110
 */
99 111
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
100
#define HAL_USE_MAC                 FALSE
112
#define HAL_USE_MAC                         FALSE
101 113
#endif
102 114

  
103 115
/**
104 116
 * @brief   Enables the MMC_SPI subsystem.
105 117
 */
106 118
#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
107
#define HAL_USE_MMC_SPI             FALSE
119
#define HAL_USE_MMC_SPI                     FALSE
108 120
#endif
109 121

  
110 122
/**
111 123
 * @brief   Enables the PWM subsystem.
112 124
 */
113 125
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
114
#define HAL_USE_PWM                 FALSE
126
#define HAL_USE_PWM                         FALSE
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
115 134
#endif
116 135

  
117 136
/**
118 137
 * @brief   Enables the RTC subsystem.
119 138
 */
120 139
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
121
#define HAL_USE_RTC                 TRUE
140
#define HAL_USE_RTC                         TRUE
122 141
#endif
123 142

  
124 143
/**
125 144
 * @brief   Enables the SDC subsystem.
126 145
 */
127 146
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
128
#define HAL_USE_SDC                 FALSE
147
#define HAL_USE_SDC                         FALSE
129 148
#endif
130 149

  
131 150
/**
132 151
 * @brief   Enables the SERIAL subsystem.
133 152
 */
134 153
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
135
#define HAL_USE_SERIAL              TRUE
154
#define HAL_USE_SERIAL                      TRUE
136 155
#endif
137 156

  
138 157
/**
139 158
 * @brief   Enables the SERIAL over USB subsystem.
140 159
 */
141 160
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
142
#define HAL_USE_SERIAL_USB          FALSE
161
#define HAL_USE_SERIAL_USB                  FALSE
143 162
#endif
144 163

  
145 164
/**
146 165
 * @brief   Enables the SPI subsystem.
147 166
 */
148 167
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
149
#define HAL_USE_SPI                 TRUE
168
#define HAL_USE_SPI                         TRUE
150 169
#endif
151 170

  
152 171
/**
153 172
 * @brief   Enables the UART subsystem.
154 173
 */
155 174
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
156
#define HAL_USE_UART                FALSE
175
#define HAL_USE_UART                        FALSE
157 176
#endif
158 177

  
159 178
/**
160 179
 * @brief   Enables the USB subsystem.
161 180
 */
162 181
#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
163
#define HAL_USE_USB                 FALSE
182
#define HAL_USE_USB                         FALSE
164 183
#endif
165 184

  
166 185
/**
167 186
 * @brief   Enables the WDG subsystem.
168 187
 */
169 188
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
170
#define HAL_USE_WDG                 FALSE
189
#define HAL_USE_WDG                         FALSE
171 190
#endif
172 191

  
173 192
/**
174 193
 * @brief   Enables the QEI subsystem.
175 194
 */
176 195
#if !defined(HAL_USE_QEI) || defined(__DOXYGEN__)
177
#define HAL_USE_QEI                 FALSE
196
#define HAL_USE_QEI                         FALSE
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
178 217
#endif
179 218

  
180 219
/*===========================================================================*/
......
186 225
 * @note    Disabling this option saves both code and data space.
187 226
 */
188 227
#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
189
#define ADC_USE_WAIT                FALSE
228
#define ADC_USE_WAIT                        FALSE
190 229
#endif
191 230

  
192 231
/**
......
194 233
 * @note    Disabling this option saves both code and data space.
195 234
 */
196 235
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
197
#define ADC_USE_MUTUAL_EXCLUSION    FALSE
236
#define ADC_USE_MUTUAL_EXCLUSION            FALSE
198 237
#endif
199 238

  
200 239
/*===========================================================================*/
......
205 244
 * @brief   Sleep mode related APIs inclusion switch.
206 245
 */
207 246
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
208
#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
209 297
#endif
210 298

  
211 299
/*===========================================================================*/
......
216 304
 * @brief   Enables the mutual exclusion APIs on the I2C bus.
217 305
 */
218 306
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
219
#define I2C_USE_MUTUAL_EXCLUSION    TRUE
307
#define I2C_USE_MUTUAL_EXCLUSION            TRUE
220 308
#endif
221 309

  
222 310
/*===========================================================================*/
......
224 312
/*===========================================================================*/
225 313

  
226 314
/**
227
 * @brief   Enables an event sources for incoming packets.
315
 * @brief   Enables the zero-copy API.
228 316
 */
229 317
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
230
#define MAC_USE_ZERO_COPY           FALSE
318
#define MAC_USE_ZERO_COPY                   FALSE
231 319
#endif
232 320

  
233 321
/**
234 322
 * @brief   Enables an event sources for incoming packets.
235 323
 */
236 324
#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
237
#define MAC_USE_EVENTS              FALSE
325
#define MAC_USE_EVENTS                      FALSE
238 326
#endif
239 327

  
240 328
/*===========================================================================*/
......
250 338
 *          use a DMA channel and heavily loads the CPU.
251 339
 */
252 340
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
253
#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
254 362
#endif
255 363

  
256 364
/*===========================================================================*/
......
262 370
 * @note    Attempts are performed at 10mS intervals.
263 371
 */
264 372
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
265
#define SDC_INIT_RETRY              100
373
#define SDC_INIT_RETRY                      100
266 374
#endif
267 375

  
268 376
/**
......
271 379
 *          at @p FALSE.
272 380
 */
273 381
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
274
#define SDC_MMC_SUPPORT             FALSE
382
#define SDC_MMC_SUPPORT                     FALSE
275 383
#endif
276 384

  
277 385
/**
......
281 389
 *          lower priority, this may slow down the driver a bit however.
282 390
 */
283 391
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
284
#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
285 407
#endif
286 408

  
287 409
/*===========================================================================*/
......
294 416
 *          default configuration.
295 417
 */
296 418
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
297
#define SERIAL_DEFAULT_BITRATE      115200
419
#define SERIAL_DEFAULT_BITRATE              115200
298 420
#endif
299 421

  
300 422
/**
......
305 427
 *          buffers.
306 428
 */
307 429
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
308
#define SERIAL_BUFFERS_SIZE         16
430
#define SERIAL_BUFFERS_SIZE                 16
309 431
#endif
310 432

  
311 433
/*===========================================================================*/
......
320 442
 *          buffers.
321 443
 */
322 444
#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
323
#define SERIAL_USB_BUFFERS_SIZE     256
445
#define SERIAL_USB_BUFFERS_SIZE             256
324 446
#endif
325 447

  
326 448
/**
......
328 450
 * @note    The default is 2 buffers.
329 451
 */
330 452
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
331
#define SERIAL_USB_BUFFERS_NUMBER   2
453
#define SERIAL_USB_BUFFERS_NUMBER           2
332 454
#endif
333 455

  
334 456
/*===========================================================================*/
......
340 462
 * @note    Disabling this option saves both code and data space.
341 463
 */
342 464
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
343
#define SPI_USE_WAIT                TRUE
465
#define SPI_USE_WAIT                        TRUE
344 466
#endif
345 467

  
346 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
474
#endif
475

  
476

  
477
/**
347 478
 * @brief   Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
348 479
 * @note    Disabling this option saves both code and data space.
349 480
 */
350 481
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
351
#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
352 491
#endif
353 492

  
354 493
/*===========================================================================*/
......
360 499
 * @note    Disabling this option saves both code and data space.
361 500
 */
362 501
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
363
#define UART_USE_WAIT               FALSE
502
#define UART_USE_WAIT                       FALSE
364 503
#endif
365 504

  
366 505
/**
......
368 507
 * @note    Disabling this option saves both code and data space.
369 508
 */
370 509
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
371
#define UART_USE_MUTUAL_EXCLUSION   FALSE
510
#define UART_USE_MUTUAL_EXCLUSION           FALSE
372 511
#endif
373 512

  
374 513
/*===========================================================================*/
......
380 519
 * @note    Disabling this option saves both code and data space.
381 520
 */
382 521
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
383
#define USB_USE_WAIT                FALSE
522
#define USB_USE_WAIT                        FALSE
384 523
#endif
385 524

  
386 525
#endif /* _HALCONF_H_ */

Also available in: Unified diff