Update esp32-hal-tinyusb.c

This commit is contained in:
Ha Thach 2023-11-14 10:07:14 +07:00 committed by GitHub
parent 9398e481cc
commit b03028c830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,12 @@ typedef struct {
static bool usb_otg_deinit(void * busptr) {
// Once USB OTG is initialized, its GPIOs are assigned and it shall never be deinited
// except when S3 swithicng usb from cdc to jtag while resetting to bootrom
#if CONFIG_IDF_TARGET_ESP32S3
return true;
#else
return false;
#endif
}
static void configure_pins(usb_hal_context_t *usb)