We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12cb3d commit 19ee541Copy full SHA for 19ee541
cores/arduino/usb/USB.cpp
@@ -306,11 +306,14 @@ void __USBStart() {
306
* INIT Tiny USB
307
*/
308
309
+#ifdef BOARD_TUH_RHPORT
310
assert(BOARD_TUD_RHPORT != BOARD_TUH_RHPORT);
- /* init device port*/
311
- tud_init(BOARD_TUD_RHPORT);
312
/* init host port */
313
tuh_init(BOARD_TUH_RHPORT);
+#endif
314
+
315
+ /* init device port*/
316
+ tud_init(BOARD_TUD_RHPORT);
317
318
#if 0 //defined(AZURE_RTOS_THREADX)
319
static TX_BYTE_POOL byte_pool_0;
extras/tinyusb
0 commit comments