Anyone interested with CH585? #3617
ImproperCatGirl
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a working DCD driver for its USB FS periphral.
This chip's USB FS IP is similar compared to CH32_usbfs, with a slightly different register layout, but the operating principle is the same, though WCH uses absolute register marcos instead of a struct here.
Not sure about whether or not to merge this into the ch32_usbfs driver, as I don't understand some of its design features such as the single shared EP0 toggle bit for both IN and OUT, and it merged the TX and TX CTRL registers into one.
I'm sharing this here in case anyone else is working on this silicon or has insights into the shared toggle design of the existing CH32 driver. I’d love to hear your thoughts on the best path forward for integration.
Link: https://github.com/ImproperCatGirl/tinyusb_ch585/blob/ch58x_dev/src/portable/wch/dcd_ch32_usbfs_585_v2.c
Beta Was this translation helpful? Give feedback.
All reactions