Russ Butler
8d731561cf
Remove inclusion of mbed.h from USB
...
Remove mbed.h from USB files and fix the build errors this causes.
This is required to pass CI.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
4a4dcdb5b8
Tests: USB: Use astyle to format the test class
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
38032453a5
Tests: USB: Fix 'endpoint halt' test
...
Abort all endpoint transfers before running the test again.
Use an updated vendor request to explicitly restart device reads.
2019-02-22 10:53:23 -06:00
Filip Jagodzinski
1f8bf46f2e
Tests: USB: Check ep buffer is released by abort
...
Validate that endpoint buffer is not used after a transfer has been
aborted.
2019-02-22 10:53:20 -06:00
Filip Jagodzinski
c677bf7426
Tests: USB: Decrease the max data size for iso ep
...
Although the USB spec sets the upper limit on FS isochronous endpoint
payloads to 1023 B, this value is hard to test in practice. Moreover,
not all the targets Mbed OS supports (like NUCLEO_F207ZG) are able to
handle all the endpoints set to max.
2019-02-22 10:53:19 -06:00
Russ Butler
7563a0f03f
Update test to restart reads after unstall
...
After an endpoint is unstalled any pending transfers are terminated.
This patch re-starts any reads that were ongoing.
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
27bd1656b1
Tests: USB: Update ep callbacks
...
Endpoint callbacks no longer have endpoint as a param. This update was
introduced in #7267 .
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
ff8a9b6ae8
Tests: USB: Update endpoint tests
...
Fix the host script issues present on Windows machines.
Add 0 B payload size to bulk endpoints test.
Update halt and abort tests according to PR comments.
Add an explicit request to start reading on OUT endpoints.
2019-02-22 10:53:19 -06:00
Filip Jagodzinski
686126b8ea
Tests: USB: Generic: Add basic endpoint tests
2019-02-22 10:53:19 -06:00