Darian Leung
c66f46cb77
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-09-28 00:56:44 +08:00
Darian Leung
12f07d846b
refactor(usb): Rename mock class files
...
- Rename "test_usb_mock_..." class files to "mock_..."
- Fixed some codespell issues
- Fixed comment spacing
2024-09-28 00:56:44 +08:00
Tomas Rezucha
c64d0be428
feat(usb/host): Update ISOC scheduler for HS endpoints
...
USB-OTG uses 'sched_info' field of HCTSIZ register to schedule transactions
in USB microframes.
2024-03-04 09:59:50 +01:00
Darian Leung
dc27d5456f
refactor(usb/host): reformat code with astyle
2024-02-28 16:09:50 +08:00
Tomas Rezucha
388360cc5a
fix(usb/host): Correctly parse MPS fields in HighSpeed EP descriptors
...
Bits [11,12] in HighSpeed periodic endpoints specify
the number of additional transaction opportunities per microframe
2024-02-28 16:09:49 +08:00
Tomas Rezucha
f1a2bc777e
usb_host: Use up-to-date syntax in pytest
2023-04-21 15:45:42 +08:00
Tomas Rezucha
645592e157
usb: Refactor USB Host tests
...
* USB tests migrated to pytest
* Error messages improved
* Configurable for different mock devices
2022-11-30 18:12:54 +01:00