diff options
Diffstat (limited to 'lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h')
-rw-r--r-- | lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h | 299 |
1 files changed, 299 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h b/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h new file mode 100644 index 000000000..ca790ebf0 --- /dev/null +++ b/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h | |||
@@ -0,0 +1,299 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2014 Uladzimir Pylinsky aka barthess | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | #ifndef HALCONF_COMMUNITY_H | ||
18 | #define HALCONF_COMMUNITY_H | ||
19 | |||
20 | /** | ||
21 | * @brief Enables the community overlay. | ||
22 | */ | ||
23 | #if !defined(HAL_USE_COMMUNITY) || defined(__DOXYGEN__) | ||
24 | #define HAL_USE_COMMUNITY TRUE | ||
25 | #endif | ||
26 | |||
27 | /** | ||
28 | * @brief Enables the FSMC subsystem. | ||
29 | */ | ||
30 | #if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) | ||
31 | #define HAL_USE_FSMC FALSE | ||
32 | #endif | ||
33 | |||
34 | /** | ||
35 | * @brief Enables the SDRAM subsystem. | ||
36 | */ | ||
37 | #if !defined(HAL_USE_SDRAM) || defined(__DOXYGEN__) | ||
38 | #define HAL_USE_SDRAM FALSE | ||
39 | #endif | ||
40 | |||
41 | /** | ||
42 | * @brief Enables the SRAM subsystem. | ||
43 | */ | ||
44 | #if !defined(HAL_USE_SRAM) || defined(__DOXYGEN__) | ||
45 | #define HAL_USE_SRAM FALSE | ||
46 | #endif | ||
47 | |||
48 | /** | ||
49 | * @brief Enables the NAND subsystem. | ||
50 | */ | ||
51 | #if !defined(HAL_USE_NAND) || defined(__DOXYGEN__) | ||
52 | #define HAL_USE_NAND FALSE | ||
53 | #endif | ||
54 | |||
55 | /** | ||
56 | * @brief Enables the 1-wire subsystem. | ||
57 | */ | ||
58 | #if !defined(HAL_USE_ONEWIRE) || defined(__DOXYGEN__) | ||
59 | #define HAL_USE_ONEWIRE FALSE | ||
60 | #endif | ||
61 | |||
62 | /** | ||
63 | * @brief Enables the EICU subsystem. | ||
64 | */ | ||
65 | #if !defined(HAL_USE_EICU) || defined(__DOXYGEN__) | ||
66 | #define HAL_USE_EICU FALSE | ||
67 | #endif | ||
68 | |||
69 | /** | ||
70 | * @brief Enables the CRC subsystem. | ||
71 | */ | ||
72 | #if !defined(HAL_USE_CRC) || defined(__DOXYGEN__) | ||
73 | #define HAL_USE_CRC FALSE | ||
74 | #endif | ||
75 | |||
76 | /** | ||
77 | * @brief Enables the RNG subsystem. | ||
78 | */ | ||
79 | #if !defined(HAL_USE_RNG) || defined(__DOXYGEN__) | ||
80 | #define HAL_USE_RNG FALSE | ||
81 | #endif | ||
82 | |||
83 | /** | ||
84 | * @brief Enables the EEPROM subsystem. | ||
85 | */ | ||
86 | #if !defined(HAL_USE_EEPROM) || defined(__DOXYGEN__) | ||
87 | #define HAL_USE_EEPROM FALSE | ||
88 | #endif | ||
89 | |||
90 | /** | ||
91 | * @brief Enables the TIMCAP subsystem. | ||
92 | */ | ||
93 | #if !defined(HAL_USE_TIMCAP) || defined(__DOXYGEN__) | ||
94 | #define HAL_USE_TIMCAP FALSE | ||
95 | #endif | ||
96 | |||
97 | /** | ||
98 | * @brief Enables the TIMCAP subsystem. | ||
99 | */ | ||
100 | #if !defined(HAL_USE_COMP) || defined(__DOXYGEN__) | ||
101 | #define HAL_USE_COMP FALSE | ||
102 | #endif | ||
103 | |||
104 | /** | ||
105 | * @brief Enables the QEI subsystem. | ||
106 | */ | ||
107 | #if !defined(HAL_USE_QEI) || defined(__DOXYGEN__) | ||
108 | #define HAL_USE_QEI FALSE | ||
109 | #endif | ||
110 | |||
111 | /** | ||
112 | * @brief Enables the USBH subsystem. | ||
113 | */ | ||
114 | #if !defined(HAL_USE_USBH) || defined(__DOXYGEN__) | ||
115 | #define HAL_USE_USBH TRUE | ||
116 | #endif | ||
117 | |||
118 | /** | ||
119 | * @brief Enables the USB_MSD subsystem. | ||
120 | */ | ||
121 | #if !defined(HAL_USE_USB_MSD) || defined(__DOXYGEN__) | ||
122 | #define HAL_USE_USB_MSD FALSE | ||
123 | #endif | ||
124 | |||
125 | /*===========================================================================*/ | ||
126 | /* FSMCNAND driver related settings. */ | ||
127 | /*===========================================================================*/ | ||
128 | |||
129 | /** | ||
130 | * @brief Enables the @p nandAcquireBus() and @p nanReleaseBus() APIs. | ||
131 | * @note Disabling this option saves both code and data space. | ||
132 | */ | ||
133 | #if !defined(NAND_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
134 | #define NAND_USE_MUTUAL_EXCLUSION TRUE | ||
135 | #endif | ||
136 | |||
137 | /*===========================================================================*/ | ||
138 | /* 1-wire driver related settings. */ | ||
139 | /*===========================================================================*/ | ||
140 | /** | ||
141 | * @brief Enables strong pull up feature. | ||
142 | * @note Disabling this option saves both code and data space. | ||
143 | */ | ||
144 | #define ONEWIRE_USE_STRONG_PULLUP FALSE | ||
145 | |||
146 | /** | ||
147 | * @brief Enables search ROM feature. | ||
148 | * @note Disabling this option saves both code and data space. | ||
149 | */ | ||
150 | #define ONEWIRE_USE_SEARCH_ROM TRUE | ||
151 | |||
152 | /*===========================================================================*/ | ||
153 | /* QEI driver related settings. */ | ||
154 | /*===========================================================================*/ | ||
155 | |||
156 | /** | ||
157 | * @brief Enables discard of overlow | ||
158 | */ | ||
159 | #if !defined(QEI_USE_OVERFLOW_DISCARD) || defined(__DOXYGEN__) | ||
160 | #define QEI_USE_OVERFLOW_DISCARD FALSE | ||
161 | #endif | ||
162 | |||
163 | /** | ||
164 | * @brief Enables min max of overlow | ||
165 | */ | ||
166 | #if !defined(QEI_USE_OVERFLOW_MINMAX) || defined(__DOXYGEN__) | ||
167 | #define QEI_USE_OVERFLOW_MINMAX FALSE | ||
168 | #endif | ||
169 | |||
170 | /*===========================================================================*/ | ||
171 | /* EEProm driver related settings. */ | ||
172 | /*===========================================================================*/ | ||
173 | |||
174 | /** | ||
175 | * @brief Enables 24xx series I2C eeprom device driver. | ||
176 | * @note Disabling this option saves both code and data space. | ||
177 | */ | ||
178 | #define EEPROM_USE_EE24XX FALSE | ||
179 | /** | ||
180 | * @brief Enables 25xx series SPI eeprom device driver. | ||
181 | * @note Disabling this option saves both code and data space. | ||
182 | */ | ||
183 | #define EEPROM_USE_EE25XX FALSE | ||
184 | |||
185 | |||
186 | /*===========================================================================*/ | ||
187 | /* USBH driver related settings. */ | ||
188 | /*===========================================================================*/ | ||
189 | |||
190 | /* main driver */ | ||
191 | #define HAL_USBH_PORT_DEBOUNCE_TIME 200 | ||
192 | #define HAL_USBH_PORT_RESET_TIMEOUT 500 | ||
193 | #define HAL_USBH_DEVICE_ADDRESS_STABILIZATION 20 | ||
194 | #define HAL_USBH_CONTROL_REQUEST_DEFAULT_TIMEOUT OSAL_MS2I(1000) | ||
195 | |||
196 | /* MSD */ | ||
197 | #define HAL_USBH_USE_MSD TRUE | ||
198 | |||
199 | #define HAL_USBHMSD_MAX_LUNS 1 | ||
200 | #define HAL_USBHMSD_MAX_INSTANCES 1 | ||
201 | |||
202 | /* FTDI */ | ||
203 | #define HAL_USBH_USE_FTDI TRUE | ||
204 | |||
205 | #define HAL_USBHFTDI_MAX_PORTS 1 | ||
206 | #define HAL_USBHFTDI_MAX_INSTANCES 1 | ||
207 | #define HAL_USBHFTDI_DEFAULT_SPEED 9600 | ||
208 | #define HAL_USBHFTDI_DEFAULT_FRAMING (USBHFTDI_FRAMING_DATABITS_8 | USBHFTDI_FRAMING_PARITY_NONE | USBHFTDI_FRAMING_STOP_BITS_1) | ||
209 | #define HAL_USBHFTDI_DEFAULT_FRAMING (USBHFTDI_FRAMING_DATABITS_8 | USBHFTDI_FRAMING_PARITY_NONE | USBHFTDI_FRAMING_STOP_BITS_1) | ||
210 | #define HAL_USBHFTDI_DEFAULT_HANDSHAKE USBHFTDI_HANDSHAKE_NONE | ||
211 | #define HAL_USBHFTDI_DEFAULT_XON 0x11 | ||
212 | #define HAL_USBHFTDI_DEFAULT_XOFF 0x13 | ||
213 | |||
214 | /* AOA */ | ||
215 | #define HAL_USBH_USE_AOA TRUE | ||
216 | |||
217 | #define HAL_USBHAOA_MAX_INSTANCES 1 | ||
218 | /* Uncomment this if you need a filter for AOA devices: | ||
219 | * #define HAL_USBHAOA_FILTER_CALLBACK _try_aoa | ||
220 | */ | ||
221 | #define HAL_USBHAOA_DEFAULT_MANUFACTURER "Diego MFG & Co." | ||
222 | #define HAL_USBHAOA_DEFAULT_MODEL "Diego's device" | ||
223 | #define HAL_USBHAOA_DEFAULT_DESCRIPTION "Description of this device..." | ||
224 | #define HAL_USBHAOA_DEFAULT_VERSION "1.0" | ||
225 | #define HAL_USBHAOA_DEFAULT_URI NULL | ||
226 | #define HAL_USBHAOA_DEFAULT_SERIAL NULL | ||
227 | #define HAL_USBHAOA_DEFAULT_AUDIO_MODE USBHAOA_AUDIO_MODE_DISABLED | ||
228 | |||
229 | /* UVC */ | ||
230 | #define HAL_USBH_USE_UVC TRUE | ||
231 | |||
232 | #define HAL_USBHUVC_MAX_INSTANCES 1 | ||
233 | #define HAL_USBHUVC_MAX_MAILBOX_SZ 70 | ||
234 | #define HAL_USBHUVC_WORK_RAM_SIZE 20000 | ||
235 | #define HAL_USBHUVC_STATUS_PACKETS_COUNT 10 | ||
236 | |||
237 | /* HID */ | ||
238 | #define HAL_USBH_USE_HID TRUE | ||
239 | #define HAL_USBHHID_MAX_INSTANCES 2 | ||
240 | #define HAL_USBHHID_USE_INTERRUPT_OUT FALSE | ||
241 | |||
242 | /* HUB */ | ||
243 | #define HAL_USBH_USE_HUB TRUE | ||
244 | |||
245 | #define HAL_USBHHUB_MAX_INSTANCES 1 | ||
246 | #define HAL_USBHHUB_MAX_PORTS 6 | ||
247 | |||
248 | #define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS TRUE | ||
249 | |||
250 | /* debug */ | ||
251 | #define USBH_DEBUG_ENABLE TRUE | ||
252 | #define USBH_DEBUG_MULTI_HOST FALSE | ||
253 | #define USBH_DEBUG_SINGLE_HOST_SELECTION USBHD1 | ||
254 | #define USBH_DEBUG_BUFFER 25000 | ||
255 | #define USBH_DEBUG_OUTPUT_CALLBACK usbh_debug_output | ||
256 | |||
257 | #define USBH_DEBUG_ENABLE_TRACE FALSE | ||
258 | #define USBH_DEBUG_ENABLE_INFO TRUE | ||
259 | #define USBH_DEBUG_ENABLE_WARNINGS TRUE | ||
260 | #define USBH_DEBUG_ENABLE_ERRORS TRUE | ||
261 | |||
262 | #define USBH_LLD_DEBUG_ENABLE_TRACE FALSE | ||
263 | #define USBH_LLD_DEBUG_ENABLE_INFO TRUE | ||
264 | #define USBH_LLD_DEBUG_ENABLE_WARNINGS TRUE | ||
265 | #define USBH_LLD_DEBUG_ENABLE_ERRORS TRUE | ||
266 | |||
267 | #define USBHHUB_DEBUG_ENABLE_TRACE FALSE | ||
268 | #define USBHHUB_DEBUG_ENABLE_INFO TRUE | ||
269 | #define USBHHUB_DEBUG_ENABLE_WARNINGS TRUE | ||
270 | #define USBHHUB_DEBUG_ENABLE_ERRORS TRUE | ||
271 | |||
272 | #define USBHMSD_DEBUG_ENABLE_TRACE FALSE | ||
273 | #define USBHMSD_DEBUG_ENABLE_INFO TRUE | ||
274 | #define USBHMSD_DEBUG_ENABLE_WARNINGS TRUE | ||
275 | #define USBHMSD_DEBUG_ENABLE_ERRORS TRUE | ||
276 | |||
277 | #define USBHUVC_DEBUG_ENABLE_TRACE FALSE | ||
278 | #define USBHUVC_DEBUG_ENABLE_INFO TRUE | ||
279 | #define USBHUVC_DEBUG_ENABLE_WARNINGS TRUE | ||
280 | #define USBHUVC_DEBUG_ENABLE_ERRORS TRUE | ||
281 | |||
282 | #define USBHFTDI_DEBUG_ENABLE_TRACE FALSE | ||
283 | #define USBHFTDI_DEBUG_ENABLE_INFO TRUE | ||
284 | #define USBHFTDI_DEBUG_ENABLE_WARNINGS TRUE | ||
285 | #define USBHFTDI_DEBUG_ENABLE_ERRORS TRUE | ||
286 | |||
287 | #define USBHAOA_DEBUG_ENABLE_TRACE FALSE | ||
288 | #define USBHAOA_DEBUG_ENABLE_INFO TRUE | ||
289 | #define USBHAOA_DEBUG_ENABLE_WARNINGS TRUE | ||
290 | #define USBHAOA_DEBUG_ENABLE_ERRORS TRUE | ||
291 | |||
292 | #define USBHHID_DEBUG_ENABLE_TRACE FALSE | ||
293 | #define USBHHID_DEBUG_ENABLE_INFO TRUE | ||
294 | #define USBHHID_DEBUG_ENABLE_WARNINGS TRUE | ||
295 | #define USBHHID_DEBUG_ENABLE_ERRORS TRUE | ||
296 | |||
297 | #endif /* HALCONF_COMMUNITY_H */ | ||
298 | |||
299 | /** @} */ | ||