diff --git a/cores/esp32/esp32-hal-tinyusb.c b/cores/esp32/esp32-hal-tinyusb.c index 300998a0352..0a08000892e 100644 --- a/cores/esp32/esp32-hal-tinyusb.c +++ b/cores/esp32/esp32-hal-tinyusb.c @@ -165,7 +165,11 @@ void deinit_usb_hal() { esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) { init_usb_hal(config->external_phy); - if (!tusb_init(0, TUSB_ROLE_DEVICE)) { + tusb_rhport_init_t tinit; + memset(&tinit, 0, sizeof(tusb_rhport_init_t)); + tinit.role = TUSB_ROLE_DEVICE; + tinit.speed = TUSB_SPEED_FULL; + if (!tusb_init(0, &tinit)) { log_e("Can't initialize the TinyUSB stack."); return ESP_FAIL; } diff --git a/package/package_esp32_index.template.json b/package/package_esp32_index.template.json index 23dc1347434..3abb765e970 100644 --- a/package/package_esp32_index.template.json +++ b/package/package_esp32_index.template.json @@ -42,7 +42,7 @@ { "packager": "esp32", "name": "esp32-arduino-libs", - "version": "idf-release_v5.1-6dff5b8f" + "version": "idf-release_v5.1-632e0c2a" }, { "packager": "esp32", @@ -105,63 +105,63 @@ "tools": [ { "name": "esp32-arduino-libs", - "version": "idf-release_v5.1-6dff5b8f", + "version": "idf-release_v5.1-632e0c2a", "systems": [ { "host": "i686-mingw32", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "x86_64-mingw32", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "arm64-apple-darwin", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "x86_64-apple-darwin", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "x86_64-pc-linux-gnu", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "i686-pc-linux-gnu", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "aarch64-linux-gnu", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" }, { "host": "arm-linux-gnueabihf", - "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-6dff5b8f.zip", - "checksum": "SHA-256:b00d9cd0c33dc6be79963036c87189a50dfe6b62aca29d2fd94537823c70e2df", - "size": "309446401" + "url": "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "archiveFileName": "esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip", + "checksum": "SHA-256:5c3bdfeb5396fb5272d374122d9563458517820ddb35dd846c119fc6a741abe9", + "size": "309891323" } ] },