hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.93k stars 1.03k forks source link

CH32 add support for fsdev (device only) #2659

Closed hathach closed 4 months ago

hathach commented 4 months ago

Describe the PR This mainly add support for ch32 to stm32 fsdev driver. Also change dcd_disconnect/connect to default implemenation (instead of weak = 0)

CH32 often has multiple usb controller: fsdev, usbfs, usbhfs. By default:

these can be manually selected accordinly by defining macros in tusb_config.h or via CFLAGS