Maciej Bocianski
9b4970342b
Extend USB test class configuration
2019-02-22 10:53:14 -06:00
Russ Butler
6bb6d6fb42
Explicitly specify USBPhy used for testing
...
Add a parameter to the USBPhy class so mock or wrapper USBPhy classes
can be used.
2019-02-22 10:53:14 -06:00
Russ Butler
a341a7c258
Make USB disconnect + connect time explicit
...
Create the define MIN_DISCONNECT_TIME_US to be used as the amount of
time that must pass between connect and disconnect for the host to
reliably detect reconnection. Replace the wait calls delaying for this
value to wait_us to indicate the precision required. Finally, remove
the unnecessary calls to wait_ms in
repeated_construction_destruction_test.
2019-02-22 10:53:14 -06:00
Maciej Bocianski
ff3b0c1623
code formatting fixes
2019-02-22 10:53:13 -06:00
Maciej Bocianski
69a095cf3e
USBDevice - add multiconfiguration support
2019-02-22 10:53:13 -06:00
Maciej Bocianski
c2c3e01c36
USBDevice - add support for deconfiguration
2019-02-22 10:53:13 -06:00
Maciej Bocianski
e4ffc6dea0
USB reset test fix
2019-02-22 10:53:13 -06:00
Russ Butler
0a787e7fe9
Skip USB reset tests on OSX
...
OSX machines don't allow you to reset USB devices. Skip this test on
OSX so testing can still be used.
2019-02-22 10:53:13 -06:00
Russ Butler
f31eb68ec5
Update USBTester product name
...
Change the name reported by USBTester from CDC DEVICE to
MBED TEST DEVICE.
2019-02-22 10:53:12 -06:00
Maciej Bocianski
33bef331e6
USB generic tests
2019-02-22 10:52:35 -06:00
Russ Butler
aedeee068a
Update USBTester for the new USB API
...
Update the class USBTester so it works with the new zero-copy
USBDevice API.
2019-02-22 10:52:34 -06:00
Russ Butler
de12bb57fa
Update USBTester for simplified read handling
...
Remove read_start and replace read_finish with read to match the new
USBDevice API.
2019-02-22 10:52:33 -06:00
Russ Butler
f9f12766d8
Add USBDevice test code
...
Add a USB test and the class USBTester.cpp to go along with it.
2019-02-22 10:52:32 -06:00