esp-idf/components/usb/test_apps/hcd
Darian Leung 6ead402d15
refactor(usb): Split test device descriptors from mock class files
Previously, descriptors of the test devices were stored direclty in the mock
device files (e.g., "mock_[hid|msc].[h|c]"). This commit splits out the device
descriptors to separate files (e.g., "dev_[hid|msc].c") along with getter
functions.

Users that want to run the tests locally on a different device simply need to
update the "dev_[hid|msc].c" file for their device.
2024-06-09 12:19:53 +08:00
..
main refactor(usb): Split test device descriptors from mock class files 2024-06-09 12:19:53 +08:00
CMakeLists.txt fix(test_apps): Trim builds of component test apps 2023-09-18 17:16:37 +08:00
pytest_usb_hcd.py usb_host: Use up-to-date syntax in pytest 2023-04-19 11:06:25 +02:00
README.md usb: Refactor USB Host tests 2022-11-30 18:12:54 +01:00
sdkconfig.defaults usb: Refactor USB Host tests 2022-11-30 18:12:54 +01:00

Supported Targets ESP32-S2 ESP32-S3

USB: Host test application

There are two sets of tests in this application:

  1. Low-speed: Expects low-speed USB mouse with interrupt endpoint to be connected
  2. 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.