stm32-rs / stm32-usbd

usb-device implementation for STM32 microcontrollers
https://crates.io/crates/usb-device
MIT License
100 stars 25 forks source link

Support for STM OTG_FS core present in STM32F4xx (and higher) series microcontrollers #19

Closed thousandeyes-fwieland closed 4 years ago

thousandeyes-fwieland commented 4 years ago

Eg. the STM32F446xx family has OTG_FS and OTG_HS cores which can function both as peripheral and host (for USB OTG). I would like to be able to use this crate with the OTG_FS core in peripheral mode. I can help with the implementation, but will need some pointers on where to start.

I'm currently trying to find out more about the OTG_FS core itself.

TeXitoi commented 4 years ago

There is a WiP here: https://github.com/Disasm/stm32f429-usbd-fs

Disasm commented 4 years ago

I think that driver for OTG_FS&HS should live in a different crate for multiple reasons:

@thousandeyes-fwieland Feel free to join stm32f429-usbd-fs development. At the moment, that driver works for STM32F429 and STM32F401 MCUs, but there are a lot of things to do:

TeXitoi commented 4 years ago

@Disasm you make it work on GD32VF103?

Disasm commented 4 years ago

@TeXitoi I tried to plug this library in for GD32VF103, but it didn't work out of the box. I'm planning to add GD32VF103 support anyway.

Disasm commented 4 years ago

Closing the issue as synopsys-usb-otg was released and a lot of problems solved since then.