We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af40992 commit e5c240aCopy full SHA for e5c240a
cores/esp32/esp32-hal-tinyusb.c
@@ -174,9 +174,9 @@ void deinit_usb_hal() {
174
esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) {
175
init_usb_hal(config->external_phy);
176
#if CONFIG_IDF_TARGET_ESP32P4
177
- if (!tud_init(1)) {
+ if (!tusb_init(1, TUSB_ROLE_DEVICE)) {
178
#else
179
- if (!tud_init(0)) {
+ if (!tusb_init(0, TUSB_ROLE_DEVICE)) {
180
#endif
181
log_e("Can't initialize the TinyUSB stack.");
182
return ESP_FAIL;
0 commit comments