Statistics
| Branch: | Tag: | Revision:

amiro-os / devices / LightRing / halconf.h @ dd47d655

History | View | Annotate | Download (8.467 KB)

1 3f899f5d Thomas Schöpping
/**
2
 * @file    devices/LightRing/halconf.h
3
 * @brief   HAL configuration header.
4
 * @details HAL configuration file, this file allows to enable or disable the
5
 *          various device drivers from your application. You may also use
6
 *          this file in order to override the device drivers default settings.
7
 *
8
 * @addtogroup HAL_CONF
9
 * @{
10
 */
11
12 58fe0e0b Thomas Schöpping
#ifndef _HALCONF_H_
13
#define _HALCONF_H_
14
15
#include "mcuconf.h"
16
17
/**
18
 * @brief   Enables the TM subsystem.
19
 */
20
#if !defined(HAL_USE_TM) || defined(__DOXYGEN__)
21
#define HAL_USE_TM                  TRUE
22
#endif
23
24
/**
25
 * @brief   Enables the PAL subsystem.
26
 */
27
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
28
#define HAL_USE_PAL                 TRUE
29
#endif
30
31
/**
32
 * @brief   Enables the ADC subsystem.
33
 */
34
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
35
#define HAL_USE_ADC                 FALSE
36
#endif
37
38
/**
39
 * @brief   Enables the CAN subsystem.
40
 */
41
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
42
#define HAL_USE_CAN                 TRUE
43
#endif
44
45
/**
46
 * @brief   Enables the EXT subsystem.
47
 */
48
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
49
#define HAL_USE_EXT                 TRUE
50
#endif
51
52
/**
53
 * @brief   Enables the GPT subsystem.
54
 */
55
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
56
#define HAL_USE_GPT                 FALSE
57
#endif
58
59
/**
60
 * @brief   Enables the I2C subsystem.
61
 */
62
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
63
#define HAL_USE_I2C                 TRUE
64
#endif
65
66
/**
67
 * @brief   Enables the ICU subsystem.
68
 */
69
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
70
#define HAL_USE_ICU                 FALSE
71
#endif
72
73
/**
74
 * @brief   Enables the MAC subsystem.
75
 */
76
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
77
#define HAL_USE_MAC                 FALSE
78
#endif
79
80
/**
81
 * @brief   Enables the MMC_SPI subsystem.
82
 */
83
#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
84
#define HAL_USE_MMC_SPI             FALSE
85
#endif
86
87
/**
88
 * @brief   Enables the PWM subsystem.
89
 */
90
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
91
#define HAL_USE_PWM                 FALSE
92
#endif
93
94
/**
95
 * @brief   Enables the RTC subsystem.
96
 */
97
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
98
#define HAL_USE_RTC                 FALSE
99
#endif
100
101
/**
102
 * @brief   Enables the SDC subsystem.
103
 */
104
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
105
#define HAL_USE_SDC                 FALSE
106
#endif
107
108
/**
109
 * @brief   Enables the SERIAL subsystem.
110
 */
111
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
112
#define HAL_USE_SERIAL              TRUE
113
#endif
114
115
/**
116
 * @brief   Enables the SERIAL over USB subsystem.
117
 */
118
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
119
#define HAL_USE_SERIAL_USB          FALSE
120
#endif
121
122
/**
123
 * @brief   Enables the SPI subsystem.
124
 */
125
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
126
#define HAL_USE_SPI                 TRUE
127
#endif
128
129
/**
130
 * @brief   Enables the UART subsystem.
131
 */
132
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
133
#define HAL_USE_UART                FALSE
134
#endif
135
136
/**
137
 * @brief   Enables the USB subsystem.
138
 */
139
#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
140
#define HAL_USE_USB                 FALSE
141
#endif
142
143
/*===========================================================================*/
144
/* ADC driver related settings.                                              */
145
/*===========================================================================*/
146
147
/**
148
 * @brief   Enables synchronous APIs.
149
 * @note    Disabling this option saves both code and data space.
150
 */
151
#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
152
#define ADC_USE_WAIT                TRUE
153
#endif
154
155
/**
156
 * @brief   Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
157
 * @note    Disabling this option saves both code and data space.
158
 */
159
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
160
#define ADC_USE_MUTUAL_EXCLUSION    TRUE
161
#endif
162
163
/*===========================================================================*/
164
/* CAN driver related settings.                                              */
165
/*===========================================================================*/
166
167
/**
168
 * @brief   Sleep mode related APIs inclusion switch.
169
 */
170
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
171
#define CAN_USE_SLEEP_MODE          TRUE
172
#endif
173
174
/*===========================================================================*/
175
/* I2C driver related settings.                                              */
176
/*===========================================================================*/
177
178
/**
179
 * @brief   Enables the mutual exclusion APIs on the I2C bus.
180
 */
181
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
182
#define I2C_USE_MUTUAL_EXCLUSION    TRUE
183
#endif
184
185
/*===========================================================================*/
186
/* MAC driver related settings.                                              */
187
/*===========================================================================*/
188
189
/**
190
 * @brief   Enables an event sources for incoming packets.
191
 */
192
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
193
#define MAC_USE_ZERO_COPY           FALSE
194
#endif
195
196
/**
197
 * @brief   Enables an event sources for incoming packets.
198
 */
199
#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
200
#define MAC_USE_EVENTS              TRUE
201
#endif
202
203
/*===========================================================================*/
204
/* MMC_SPI driver related settings.                                          */
205
/*===========================================================================*/
206
207
/**
208
 * @brief   Delays insertions.
209
 * @details If enabled this options inserts delays into the MMC waiting
210
 *          routines releasing some extra CPU time for the threads with
211
 *          lower priority, this may slow down the driver a bit however.
212
 *          This option is recommended also if the SPI driver does not
213
 *          use a DMA channel and heavily loads the CPU.
214
 */
215
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
216
#define MMC_NICE_WAITING            TRUE
217
#endif
218
219
/*===========================================================================*/
220
/* SDC driver related settings.                                              */
221
/*===========================================================================*/
222
223
/**
224
 * @brief   Number of initialization attempts before rejecting the card.
225
 * @note    Attempts are performed at 10mS intervals.
226
 */
227
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
228
#define SDC_INIT_RETRY              100
229
#endif
230
231
/**
232
 * @brief   Include support for MMC cards.
233
 * @note    MMC support is not yet implemented so this option must be kept
234
 *          at @p FALSE.
235
 */
236
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
237
#define SDC_MMC_SUPPORT             FALSE
238
#endif
239
240
/**
241
 * @brief   Delays insertions.
242
 * @details If enabled this options inserts delays into the MMC waiting
243
 *          routines releasing some extra CPU time for the threads with
244
 *          lower priority, this may slow down the driver a bit however.
245
 */
246
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
247
#define SDC_NICE_WAITING            TRUE
248
#endif
249
250
/*===========================================================================*/
251
/* SERIAL driver related settings.                                           */
252
/*===========================================================================*/
253
254
/**
255
 * @brief   Default bit rate.
256
 * @details Configuration parameter, this is the baud rate selected for the
257
 *          default configuration.
258
 */
259
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
260
#define SERIAL_DEFAULT_BITRATE      38400
261
#endif
262
263
/**
264
 * @brief   Serial buffers size.
265
 * @details Configuration parameter, you can change the depth of the queue
266
 *          buffers depending on the requirements of your application.
267
 * @note    The default is 64 bytes for both the transmission and receive
268
 *          buffers.
269
 */
270
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
271
#define SERIAL_BUFFERS_SIZE         16
272
#endif
273
274
/*===========================================================================*/
275
/* SPI driver related settings.                                              */
276
/*===========================================================================*/
277
278
/**
279
 * @brief   Enables synchronous APIs.
280
 * @note    Disabling this option saves both code and data space.
281
 */
282
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
283
#define SPI_USE_WAIT                TRUE
284
#endif
285
286
/**
287
 * @brief   Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
288
 * @note    Disabling this option saves both code and data space.
289
 */
290
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
291
#define SPI_USE_MUTUAL_EXCLUSION    TRUE
292
#endif
293
294
#endif /* _HALCONF_H_ */
295 3f899f5d Thomas Schöpping
296
/** @} */