ch32-rs / ch32-hal

A Rust HAL implementation for the CH32V0, CH32V1, CH32V2, CH32V3, CH32X0, CH32L1 family, with Embassy framework support and compatible with embedded-hal.
Apache License 2.0
60 stars 15 forks source link

USB device example #40

Open kekcheburec opened 2 weeks ago

kekcheburec commented 2 weeks ago

Hi, @andelf !

I saw that in this hal there is a USB device implementation, but there is no example for working on the same ch32v203 :(

Or is the implementation not working at all?

andelf commented 2 weeks ago

I haven't tested it yet. CH32V has two completely different USB IP cores. One is USBD used in CH32V203, which is almost the same as STM32's. So I just copied the implementation.

Another IP core is USBH(OTG) used in some other chips.

Dummyc0m commented 2 hours ago

Do you have any plans to work on the OTG peripheral in the near future? If not, we're interested to help out and avoid duplicate work.

kekcheburec commented 1 hour ago

Hi @Dummyc0m !

Personally, at the moment I do not plan to implement usb otg peripherals. I just wanted to find out if what is already in the repository works and got an answer.

In general, you can close the issue.

Dummyc0m commented 1 hour ago

Sorry, I was actually hijacking the issue and asking @andelf to see if they have any plans.

Vixea commented 31 minutes ago

Why close the issue as complete? There's no USBD example