mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
refactor(ext_hub): Device release (allows to run usb_host test with ext hub)
754d357frefactor(ext_hub): Fixed device release, optimized the order of closing usbh devicefc61875arefactor(ext_hub): Pospone the device release, if device is not IDLE3fd17b8brefactor(hub): Applied new ext_hub api, refactor func names3003362brefactor(usb_host): Cancel hub porpagation to the user, rename non-critical func19ce9ed6refactor(test_usb_host_async): Added host_lib_task finish notificationf238d75brefactor(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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user