Statistics
| Branch: | Tag: | Revision:

amiro-os / devices / LightRing / halconf.h @ 58fe0e0b

History | View | Annotate | Download (8.111 KB)

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