esp-idf/components/usb/test_apps/usb_host
Darian Leung 7f61f74aa0
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 10:43:25 +08:00
..
main refactor(usb): Split test device descriptors from mock class files 2024-06-09 10:43:25 +08:00
CMakeLists.txt fix(test_apps): Trim builds of component test apps 2023-09-18 17:16:37 +08:00
pytest_usb_host.py ci: Added esp32p4 usb tests to CI: 2024-02-29 10:35:09 +01:00
README.md refactor(usb): Rename mock class files 2024-06-09 10:43:20 +08:00
sdkconfig.defaults usb: Refactor USB Host tests 2022-11-30 18:12:54 +01:00

Supported Targets ESP32-P4 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 mock_msc.h and mock_hid.h.