esp-idf/components/usb/test/usb_host
Darian Leung 1aad12468a usb: Hub Driver Update and Refactor
Hub Driver is refactored as follows:

This commit update and refactors the Hub Driver as follows:

- Refactored enumeration state machine and stage functions
    - Enumeration stage is now incremented
    - Combined transfer stages of enumeration into common functions
- Comments updated
- Fixed usbh_hal_disable_debounce_lock() that would cause root_port_handle_events()
    to fail the HCD_PORT_CMD_RESET call because the previous port connection interrupt
    was not cleared.

The following features were added to the Hub Driver

- Enumeration config descriptor is now fetched in two separate stages
    - Header is fetched first to determine the wTotalLength of the descriptor
    - Fetching the full descriptor will request exactly wTotalLength bytes
    - This works around some non-compliant devices that will babble/return zero
        when requesting a length > wTotalLength
    - Closes https://github.com/espressif/esp-idf/issues/7799
- Enumeration now stores string descriptors
    - The Manufacturer, Product, and Serial Number string descriptors are
        now read and stored during enumeration
    - String descriptors are now part of usb_device_info_t
- Added unit test to test enumeration
2022-01-06 15:11:13 +08:00
..
ctrl_client_async_seq.c usb: Change API and refactor tests 2021-11-02 14:30:58 +08:00
ctrl_client.h Add USB Host Library 2021-08-24 23:28:00 +08:00
msc_client_async_dconn.c usb: USB Host stack uses USB PHY driver 2022-01-06 15:09:39 +08:00
msc_client_async_enum.c usb: Hub Driver Update and Refactor 2022-01-06 15:11:13 +08:00
msc_client_async_seq.c usb: Change API and refactor tests 2021-11-02 14:30:58 +08:00
msc_client.h usb: Hub Driver Update and Refactor 2022-01-06 15:11:13 +08:00
test_usb_helpers.c Add USB Host Library API docs 2021-09-02 18:40:24 +08:00
test_usb_host_async.c usb: USB Host stack uses USB PHY driver 2022-01-06 15:09:39 +08:00
test_usb_host_plugging.c usb: Hub Driver Update and Refactor 2022-01-06 15:11:13 +08:00