embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.23k stars 725 forks source link

STM32 USB (OTG) implementation #557

Closed FrozenDroid closed 2 years ago

FrozenDroid commented 2 years ago

Hi. For our upcoming project, we need a USB-OTG implementation. We are using the STM32L476

I see that there is no implementation yet. I'm creating this issue as a track issue to coordinate work.

Has anyone done any research into implementing this in the Embassy HAL?

Dirbaio commented 2 years ago

There's this HAL-independent driver that works with all chips with OTG: https://github.com/stm32-rs/synopsys-usb-otg

It should be easy to wrap it with this, similar to what #539 does with nrf-usbd.

FrozenDroid commented 2 years ago

Oh, I entirely missed this. I'll have a look!