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