Skip to content

Commit 19ee541

Browse files
committed
USB: fix compilation on Santiago
Former-commit-id: 0a0b02e
1 parent a12cb3d commit 19ee541

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cores/arduino/usb/USB.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,14 @@ void __USBStart() {
306306
* INIT Tiny USB
307307
*/
308308

309+
#ifdef BOARD_TUH_RHPORT
309310
assert(BOARD_TUD_RHPORT != BOARD_TUH_RHPORT);
310-
/* init device port*/
311-
tud_init(BOARD_TUD_RHPORT);
312311
/* init host port */
313312
tuh_init(BOARD_TUH_RHPORT);
313+
#endif
314+
315+
/* init device port*/
316+
tud_init(BOARD_TUD_RHPORT);
314317

315318
#if 0 //defined(AZURE_RTOS_THREADX)
316319
static TX_BYTE_POOL byte_pool_0;

extras/tinyusb

0 commit comments

Comments
 (0)