rust-embedded-community / usb-device

Experimental device-side USB framework for microcontrollers in Rust.
MIT License
437 stars 75 forks source link

Feature request: TinyUSB integration #135

Closed GamePad64 closed 7 months ago

GamePad64 commented 10 months ago

Hi! I am developing apps for ESP32-S2/S3 platform. These chips are not supported by usb-device, but they are compatible with tinyUSB stack. It will be great to create a thin wrapper, that implements UsbBus trait and uses tinyUSB as backend. It will provide a workaround for a lot of devices, until there will be a native driver.

ryan-summers commented 10 months ago

usb-device is the USB device-side stack (along with the class drivers), so it's a replacement for tinyUSB on embedded devices. As such, I'm not entirely sure how it would make sense to add a shim into the one usb device stack for another, as they're just two different avenues to do the same thing.

This library is entirely USB-phy independent, so support could be added for the ESP32 chips if a developer were interested - they just have to implement the UsbBus trait and this crate would then become fully compatible.

ryan-summers commented 7 months ago

Closing, as I do not think there's further activities here in this crate.