refactor(ext_hub): Device release (allows to run usb_host test with ext hub)

754d357f refactor(ext_hub): Fixed device release, optimized the order of closing usbh device
fc61875a refactor(ext_hub): Pospone the device release, if device is not IDLE
3fd17b8b refactor(hub): Applied new ext_hub api, refactor func names
3003362b refactor(usb_host): Cancel hub porpagation to the user, rename non-critical func
19ce9ed6 refactor(test_usb_host_async): Added host_lib_task finish notification
f238d75b refactor(ext_port): Remove the error verification, as error will be handled in ext hub driver

Co-authored-by: Roman Leonov <roman.leonov@espressif.com>
This commit is contained in:
Roman Leonov
2025-06-02 11:44:22 +02:00
parent 28980b62c9
commit 628d7ad77d
7 changed files with 113 additions and 146 deletions
+1 -4
View File
@@ -131,11 +131,8 @@ esp_err_t ext_hub_dev_gone(uint8_t dev_addr);
* Entry:
* - should be called within Hub Driver when USB Host library need to be uninstalled
*
* @return
* - ESP_OK: All devices freed
* - ESP_ERR_NOT_FINISHED: Operation not finished: devices waiting children to be freed.
*/
esp_err_t ext_hub_all_free(void);
void ext_hub_mark_all_free(void);
/**
* @brief The External Hub or Ports statuses change completed
+2 -2
View File
@@ -205,7 +205,7 @@ esp_err_t hub_port_disable(usb_device_handle_t parent_dev_hdl, uint8_t parent_po
* - ESP_OK: New device added successfully
* - ESP_ERR_INVALID_STATE: Hub driver is not in a correct state
*/
esp_err_t hub_notify_new_dev(uint8_t dev_addr);
esp_err_t hub_dev_new(uint8_t dev_addr);
/**
* @brief Notify Hub driver that device has been removed
@@ -221,7 +221,7 @@ esp_err_t hub_notify_new_dev(uint8_t dev_addr);
* - ESP_OK: A device removed successfully
* - ESP_ERR_INVALID_STATE: Hub driver is not in a correct state
*/
esp_err_t hub_notify_dev_gone(uint8_t dev_addr);
esp_err_t hub_dev_gone(uint8_t dev_addr);
#if ENABLE_USB_HUBS
/**