Commit Graph

13 Commits (ddc27cb8214dc5b4a1ac9b12f6ea3ea8b4150d63)

Author SHA1 Message Date
Russ Butler ddc27cb821 Remove endpoint parameter from USB callbacks
Remove the endpoint parameter from endpoint callbacks. This
information is redundant because endpoints are known at
construction time because they must be in the configuration
descriptor.
2019-01-29 12:27:29 -06:00
Russ Butler 6688857247 Fix various USB warnings
Fix the following warnings:
-[Warning] USBTester.cpp@45,0:  #1299-D: members and base-classes will
    be initialized in declaration order, not in member initialisation
    list order
-[Warning] USBTester.h@41,0:  #1300-D: ~USBTester inherits implicit
    virtual
-[Warning] USBAudio.cpp@345,0:  #1035-D: single-precision operand
    implicitly converted to double-precision
-[Warning] USBHID.cpp@29,0:  #1300-D: ~AsyncSend inherits implicit
    virtual
-[Warning] USBHID.cpp@61,0:  #1300-D: ~AsyncRead inherits implicit
    virtual
-[Warning] USBHID.cpp@93,0:  #1300-D: ~AsyncWait inherits implicit
    virtual
-[Warning] EndpointResolver.cpp@125,26: '<<' in boolean context, did
    you mean '<' ? [-Wint-in-bool-context]
2019-01-29 12:27:28 -06:00
Maciej Bocianski 1d82a78bed Update usb test to connect and block itself
Update the basic usb test so it does blocking itself since blocking
connect was removed from USBDevice.
2019-01-29 12:27:26 -06:00
Maciej Bocianski 54f21c3526 Extend USB test class configuration 2019-01-29 12:27:25 -06:00
Russ Butler af5c99d5c1 Explicitly specify USBPhy used for testing
Add a parameter to the USBPhy class so mock or wrapper USBPhy classes
can be used.
2019-01-29 12:27:25 -06:00
Maciej Bocianski 5d40f34c33 code formatting fixes 2019-01-29 12:27:25 -06:00
Maciej Bocianski e515a52ffa USBDevice - add multiconfiguration support 2019-01-29 12:27:25 -06:00
Maciej Bocianski bfa3dc4962 USBDevice - add support for deconfiguration 2019-01-29 12:27:24 -06:00
Russ Butler 4b4cea9f59 Update USBTester product name
Change the name reported by USBTester from CDC DEVICE to
MBED TEST DEVICE.
2019-01-29 12:27:24 -06:00
Maciej Bocianski 5f4e84a726 USB generic tests 2019-01-29 12:27:23 -06:00
Russ Butler 9b09f43f04 Update USBTester for the new USB API
Update the class USBTester so it works with the new zero-copy
USBDevice API.
2019-01-29 12:27:22 -06:00
Russ Butler 2c202ac224 Update USBTester for simplified read handling
Remove read_start and replace read_finish with read to match the new
USBDevice API.
2019-01-29 12:27:21 -06:00
Russ Butler a9dccd4c94 Add USBDevice test code
Add a USB test and the class USBTester.cpp to go along with it.
2019-01-29 12:27:21 -06:00