mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cac0ef9d11
Currently, USB Host unit tests that require a software triggered disconnection/ reconnection rely on the 'usb_phy_action()' function. This commit replaces those calls with 'hcd_port_command()' or 'usb_host_lib_set_root_port_power()'. Note: Also removed 'test_usb_common.h/c' as it is no longer necessary are the function call replacements.
Supported Targets | ESP32-P4 | ESP32-S2 | ESP32-S3 |
---|
USB: Host test application
There are two sets of tests in this application:
- Low-speed: Expects low-speed USB mouse with interrupt endpoint to be connected
- Full-speed: Expects full-speed USB flash disk with 2 bulk endpoints to be connected
For running these tests locally, you will have to update device definitions (VID, PID, ...) in test_usb_mock_classes.h.