Commit Graph

6 Commits (feature-hal-spec-usb-device)

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 c90c8b9dba Add default values to USBCDC constructor
Add reasonable defaults to the USBCDC constructor so it is easier to
use.
2019-01-29 12:27:27 -06:00
Russ Butler 6984060b9f Update USBHID and USBCDC for new AsyncOp
Update USB classes to use the new AsyncOp API.
2019-01-29 12:27:27 -06:00
Russ Butler 67b3993974 Cleanup USBSerial
Make the following changes
-Make blocking the first parameter in the constructor
-Add destructor and proper cleanup
-Add ready and wait_ready functions
2019-01-29 12:27:26 -06:00
Maciej Bocianski e515a52ffa USBDevice - add multiconfiguration support 2019-01-29 12:27:25 -06:00
Russ Butler 58f9b02517 Update USBCDC and USBSerial
Update the USBCDC and USBSerial classes to the new API. This patch also
updates the blocking behavior to unblock at the appropriate times and
to let the processor sleep when blocking rather than busy waiting.
2019-01-29 12:27:23 -06:00