amiro-os / devices / DiWheelDrive / halconf.h @ a0033dcb
History | View | Annotate | Download (8.611 KB)
1 | 3f899f5d | Thomas Schöpping | /**
|
---|---|---|---|
2 | * @file devices/DiWheelDrive/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 TRUE
|
||
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 | * @brief Enables the QEI subsystem.
|
||
145 | */
|
||
146 | #if !defined(HAL_USE_QEI) || defined(__DOXYGEN__)
|
||
147 | #define HAL_USE_QEI TRUE
|
||
148 | #endif
|
||
149 | |||
150 | /*===========================================================================*/
|
||
151 | /* ADC driver related settings. */
|
||
152 | /*===========================================================================*/
|
||
153 | |||
154 | /**
|
||
155 | * @brief Enables synchronous APIs.
|
||
156 | * @note Disabling this option saves both code and data space.
|
||
157 | */
|
||
158 | #if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
|
||
159 | #define ADC_USE_WAIT TRUE
|
||
160 | #endif
|
||
161 | |||
162 | /**
|
||
163 | * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
|
||
164 | * @note Disabling this option saves both code and data space.
|
||
165 | */
|
||
166 | #if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||
167 | #define ADC_USE_MUTUAL_EXCLUSION TRUE
|
||
168 | #endif
|
||
169 | |||
170 | /*===========================================================================*/
|
||
171 | /* CAN driver related settings. */
|
||
172 | /*===========================================================================*/
|
||
173 | |||
174 | /**
|
||
175 | * @brief Sleep mode related APIs inclusion switch.
|
||
176 | */
|
||
177 | #if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
|
||
178 | #define CAN_USE_SLEEP_MODE TRUE
|
||
179 | #endif
|
||
180 | |||
181 | /*===========================================================================*/
|
||
182 | /* I2C driver related settings. */
|
||
183 | /*===========================================================================*/
|
||
184 | |||
185 | /**
|
||
186 | * @brief Enables the mutual exclusion APIs on the I2C bus.
|
||
187 | */
|
||
188 | #if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||
189 | #define I2C_USE_MUTUAL_EXCLUSION TRUE
|
||
190 | #endif
|
||
191 | |||
192 | /*===========================================================================*/
|
||
193 | /* MAC driver related settings. */
|
||
194 | /*===========================================================================*/
|
||
195 | |||
196 | /**
|
||
197 | * @brief Enables an event sources for incoming packets.
|
||
198 | */
|
||
199 | #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
|
||
200 | #define MAC_USE_ZERO_COPY FALSE
|
||
201 | #endif
|
||
202 | |||
203 | /**
|
||
204 | * @brief Enables an event sources for incoming packets.
|
||
205 | */
|
||
206 | #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
|
||
207 | #define MAC_USE_EVENTS TRUE
|
||
208 | #endif
|
||
209 | |||
210 | /*===========================================================================*/
|
||
211 | /* MMC_SPI driver related settings. */
|
||
212 | /*===========================================================================*/
|
||
213 | |||
214 | /**
|
||
215 | * @brief Delays insertions.
|
||
216 | * @details If enabled this options inserts delays into the MMC waiting
|
||
217 | * routines releasing some extra CPU time for the threads with
|
||
218 | * lower priority, this may slow down the driver a bit however.
|
||
219 | * This option is recommended also if the SPI driver does not
|
||
220 | * use a DMA channel and heavily loads the CPU.
|
||
221 | */
|
||
222 | #if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
|
||
223 | #define MMC_NICE_WAITING TRUE
|
||
224 | #endif
|
||
225 | |||
226 | /*===========================================================================*/
|
||
227 | /* SDC driver related settings. */
|
||
228 | /*===========================================================================*/
|
||
229 | |||
230 | /**
|
||
231 | * @brief Number of initialization attempts before rejecting the card.
|
||
232 | * @note Attempts are performed at 10mS intervals.
|
||
233 | */
|
||
234 | #if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||
235 | #define SDC_INIT_RETRY 100 |
||
236 | #endif
|
||
237 | |||
238 | /**
|
||
239 | * @brief Include support for MMC cards.
|
||
240 | * @note MMC support is not yet implemented so this option must be kept
|
||
241 | * at @p FALSE.
|
||
242 | */
|
||
243 | #if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
|
||
244 | #define SDC_MMC_SUPPORT FALSE
|
||
245 | #endif
|
||
246 | |||
247 | /**
|
||
248 | * @brief Delays insertions.
|
||
249 | * @details If enabled this options inserts delays into the MMC waiting
|
||
250 | * routines releasing some extra CPU time for the threads with
|
||
251 | * lower priority, this may slow down the driver a bit however.
|
||
252 | */
|
||
253 | #if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
|
||
254 | #define SDC_NICE_WAITING TRUE
|
||
255 | #endif
|
||
256 | |||
257 | /*===========================================================================*/
|
||
258 | /* SERIAL driver related settings. */
|
||
259 | /*===========================================================================*/
|
||
260 | |||
261 | /**
|
||
262 | * @brief Default bit rate.
|
||
263 | * @details Configuration parameter, this is the baud rate selected for the
|
||
264 | * default configuration.
|
||
265 | */
|
||
266 | #if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
|
||
267 | #define SERIAL_DEFAULT_BITRATE 38400 |
||
268 | #endif
|
||
269 | |||
270 | /**
|
||
271 | * @brief Serial buffers size.
|
||
272 | * @details Configuration parameter, you can change the depth of the queue
|
||
273 | * buffers depending on the requirements of your application.
|
||
274 | * @note The default is 64 bytes for both the transmission and receive
|
||
275 | * buffers.
|
||
276 | */
|
||
277 | #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
|
||
278 | #define SERIAL_BUFFERS_SIZE 16 |
||
279 | #endif
|
||
280 | |||
281 | /*===========================================================================*/
|
||
282 | /* SPI driver related settings. */
|
||
283 | /*===========================================================================*/
|
||
284 | |||
285 | /**
|
||
286 | * @brief Enables synchronous APIs.
|
||
287 | * @note Disabling this option saves both code and data space.
|
||
288 | */
|
||
289 | #if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
|
||
290 | #define SPI_USE_WAIT TRUE
|
||
291 | #endif
|
||
292 | |||
293 | /**
|
||
294 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
|
||
295 | * @note Disabling this option saves both code and data space.
|
||
296 | */
|
||
297 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||
298 | #define SPI_USE_MUTUAL_EXCLUSION TRUE
|
||
299 | #endif
|
||
300 | |||
301 | #endif /* _HALCONF_H_ */ |
||
302 | 3f899f5d | Thomas Schöpping | |
303 | /** @} */ |