imxrt-rs / imxrt-usbd

USB device driver for i.MX RT processors
Apache License 2.0
7 stars 9 forks source link

usb-device: Endpoint Trait #11

Open mciantyre opened 3 years ago

mciantyre commented 3 years ago

The usb-device repo has the endpoint-trait branch which, according to conversations in the project, may represent the next version of usb-device. This issue tracks the imxrt-usbd update for the next version.

mciantyre commented 3 years ago

I pushed an endpoint-trait branch that contains the prototype driver. It exists in parallel with the 0.2 usb-device driver. You'll find the new driver under the usbcore module. Note that the endpoint_trait "crate" is actually usb-device on the endpoint-trait branch; see the package manifest for details.

The branch has an updated test_class example for the Teensy 4. The example continues to pass the usb-device test suite:

git clone https://github.com/mvirkkunen/usb-device.git --branch endpoint-trait && cd usb-device
cargo test --tests

Next steps: