atsamd-rs / atsamd

Target atsamd microcontrollers using Rust
https://matrix.to/#/#atsamd-rs:matrix.org
Apache License 2.0
540 stars 197 forks source link

Update usb-device #718

Closed ianrrees closed 4 months ago

ianrrees commented 4 months ago

Summary

The usb-device crate is used by both the HAL and USB Class crates, to create a USB Device. The same version of usb-device needs to be used for all the dependencies of a firmware, which can lead to difficulty for instance if a required USB Class crate hasn't been updated.

This PR updates usb-device to the latest released version. This is a breaking change for both usb-device and our HAL.

This commit updates our tier 1 BSPs only.

(when we cut the usb-device 0.3.0 release, we forgot to include a new type in the prelude, which made it somewhat annoying to use - hence the 0.2 -> 0.3.1)

Checklist

sajattack commented 4 months ago

Looks like rustfmt is mad about the isochronous whitespace but otherwise LGTM