Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / DiWheelDrive_1-1 / halconf.h @ 0128be0f

History | View | Annotate | Download (12.7 KB)

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
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
30
Copyright (C) 2016..2018  Thomas Schöpping et al.
31

32
This program is free software: you can redistribute it and/or modify
33
it under the terms of the GNU General Public License as published by
34
the Free Software Foundation, either version 3 of the License, or
35
(at your option) any later version.
36

37
This program is distributed in the hope that it will be useful,
38
but WITHOUT ANY WARRANTY; without even the implied warranty of
39
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40
GNU General Public License for more details.
41

42
You should have received a copy of the GNU General Public License
43
along with this program.  If not, see <http://www.gnu.org/licenses/>.
44
*/
45

    
46
/**
47
 * @file    os/modules/DiWheelDrive/halconf.h
48
 * @brief   HAL configuration header for the DiWheelDrive v1.1 module.
49
 * @details HAL configuration file, this file allows to enable or disable the
50
 *          various device drivers from your application. You may also use
51
 *          this file in order to override the device drivers default settings.
52
 *
53
 * @addtogroup HAL_CONF
54
 * @{
55
 */
56

    
57
#ifndef _HALCONF_H_
58
#define _HALCONF_H_
59

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

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

    
74
/**
75
 * @brief   Enables the CAN subsystem.
76
 */
77
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
78
#define HAL_USE_CAN                 TRUE
79
#endif
80

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

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

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

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

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

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

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

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

    
137
/**
138
 * @brief   Enables the PWM subsystem.
139
 */
140
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
141
#define HAL_USE_PWM                 TRUE
142
#endif
143

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

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

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

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

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

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

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

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

    
200
/**
201
 * @brief   Enables the QEI subsystem.
202
 */
203
#if !defined(HAL_USE_QEI) || defined(__DOXYGEN__)
204
#define HAL_USE_QEI                 TRUE
205
#endif
206

    
207
/*===========================================================================*/
208
/* ADC driver related settings.                                              */
209
/*===========================================================================*/
210

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

    
219
/**
220
 * @brief   Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
221
 * @note    Disabling this option saves both code and data space.
222
 */
223
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
224
#define ADC_USE_MUTUAL_EXCLUSION    FALSE
225
#endif
226

    
227
/*===========================================================================*/
228
/* CAN driver related settings.                                              */
229
/*===========================================================================*/
230

    
231
/**
232
 * @brief   Sleep mode related APIs inclusion switch.
233
 */
234
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
235
#define CAN_USE_SLEEP_MODE          FALSE
236
#endif
237

    
238
/*===========================================================================*/
239
/* I2C driver related settings.                                              */
240
/*===========================================================================*/
241

    
242
/**
243
 * @brief   Enables the mutual exclusion APIs on the I2C bus.
244
 */
245
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
246
#define I2C_USE_MUTUAL_EXCLUSION    TRUE
247
#endif
248

    
249
/*===========================================================================*/
250
/* MAC driver related settings.                                              */
251
/*===========================================================================*/
252

    
253
/**
254
 * @brief   Enables an event sources for incoming packets.
255
 */
256
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
257
#define MAC_USE_ZERO_COPY           FALSE
258
#endif
259

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

    
267
/*===========================================================================*/
268
/* MMC_SPI driver related settings.                                          */
269
/*===========================================================================*/
270

    
271
/**
272
 * @brief   Delays insertions.
273
 * @details If enabled this options inserts delays into the MMC waiting
274
 *          routines releasing some extra CPU time for the threads with
275
 *          lower priority, this may slow down the driver a bit however.
276
 *          This option is recommended also if the SPI driver does not
277
 *          use a DMA channel and heavily loads the CPU.
278
 */
279
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
280
#define MMC_NICE_WAITING            FALSE
281
#endif
282

    
283
/*===========================================================================*/
284
/* SDC driver related settings.                                              */
285
/*===========================================================================*/
286

    
287
/**
288
 * @brief   Number of initialization attempts before rejecting the card.
289
 * @note    Attempts are performed at 10mS intervals.
290
 */
291
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
292
#define SDC_INIT_RETRY              100
293
#endif
294

    
295
/**
296
 * @brief   Include support for MMC cards.
297
 * @note    MMC support is not yet implemented so this option must be kept
298
 *          at @p FALSE.
299
 */
300
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
301
#define SDC_MMC_SUPPORT             FALSE
302
#endif
303

    
304
/**
305
 * @brief   Delays insertions.
306
 * @details If enabled this options inserts delays into the MMC waiting
307
 *          routines releasing some extra CPU time for the threads with
308
 *          lower priority, this may slow down the driver a bit however.
309
 */
310
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
311
#define SDC_NICE_WAITING            FALSE
312
#endif
313

    
314
/*===========================================================================*/
315
/* SERIAL driver related settings.                                           */
316
/*===========================================================================*/
317

    
318
/**
319
 * @brief   Default bit rate.
320
 * @details Configuration parameter, this is the baud rate selected for the
321
 *          default configuration.
322
 */
323
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
324
#define SERIAL_DEFAULT_BITRATE      115200
325
#endif
326

    
327
/**
328
 * @brief   Serial buffers size.
329
 * @details Configuration parameter, you can change the depth of the queue
330
 *          buffers depending on the requirements of your application.
331
 * @note    The default is 16 bytes for both the transmission and receive
332
 *          buffers.
333
 */
334
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
335
#define SERIAL_BUFFERS_SIZE         16
336
#endif
337

    
338
/*===========================================================================*/
339
/* SERIAL_USB driver related setting.                                        */
340
/*===========================================================================*/
341

    
342
/**
343
 * @brief   Serial over USB buffers size.
344
 * @details Configuration parameter, the buffer size must be a multiple of
345
 *          the USB data endpoint maximum packet size.
346
 * @note    The default is 256 bytes for both the transmission and receive
347
 *          buffers.
348
 */
349
#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
350
#define SERIAL_USB_BUFFERS_SIZE     256
351
#endif
352

    
353
/**
354
 * @brief   Serial over USB number of buffers.
355
 * @note    The default is 2 buffers.
356
 */
357
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
358
#define SERIAL_USB_BUFFERS_NUMBER   2
359
#endif
360

    
361
/*===========================================================================*/
362
/* SPI driver related settings.                                              */
363
/*===========================================================================*/
364

    
365
/**
366
 * @brief   Enables synchronous APIs.
367
 * @note    Disabling this option saves both code and data space.
368
 */
369
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
370
#define SPI_USE_WAIT                TRUE
371
#endif
372

    
373
/**
374
 * @brief   Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
375
 * @note    Disabling this option saves both code and data space.
376
 */
377
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
378
#define SPI_USE_MUTUAL_EXCLUSION    TRUE
379
#endif
380

    
381
/*===========================================================================*/
382
/* UART driver related settings.                                             */
383
/*===========================================================================*/
384

    
385
/**
386
 * @brief   Enables synchronous APIs.
387
 * @note    Disabling this option saves both code and data space.
388
 */
389
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
390
#define UART_USE_WAIT               FALSE
391
#endif
392

    
393
/**
394
 * @brief   Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
395
 * @note    Disabling this option saves both code and data space.
396
 */
397
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
398
#define UART_USE_MUTUAL_EXCLUSION   FALSE
399
#endif
400

    
401
/*===========================================================================*/
402
/* USB driver related settings.                                              */
403
/*===========================================================================*/
404

    
405
/**
406
 * @brief   Enables synchronous APIs.
407
 * @note    Disabling this option saves both code and data space.
408
 */
409
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
410
#define USB_USE_WAIT                FALSE
411
#endif
412

    
413
#endif /* _HALCONF_H_ */
414

    
415
/** @} */