shared/tinyusb: Use new persistent-tx-fifo configure interface.

The old configuration option has been removed from TinyUSB.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-08-07 14:20:35 +10:00
parent 09fa90ed47
commit b0ba151102
3 changed files with 13 additions and 4 deletions

View File

@@ -428,8 +428,10 @@ void mp_usbd_init(void) {
}
if (need_usb) {
tusb_init(); // Safe to call redundantly
tud_connect(); // Reconnect if mp_usbd_deinit() has disconnected
// The following will call tusb_init(), which is safe to call redundantly.
mp_usbd_init_tud();
// Reconnect if mp_usbd_deinit() has disconnected.
tud_connect();
}
}