Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH32 add support for fsdev (device only) #2659

Merged
merged 4 commits into from
May 24, 2024
Merged

Conversation

hathach
Copy link
Owner

@hathach hathach commented May 24, 2024

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:

  • v20x use fsdev since it is available in all variants, usbfs is optional on some
  • v307 use usbhs

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

  • CFG_TUD_WCH_USBIP_FSDEV = 1
  • CFG_TUD_WCH_USBIP_USBFS = 1
  • CFG_TUD_WCH_USBIP_USBHS = 1

@hathach hathach changed the title CH32 add support for usbd (only), fsdev CH32 add support for fsdev (device only) May 24, 2024
@hathach hathach merged commit 41c7cda into master May 24, 2024
131 checks passed
@hathach hathach deleted the fsdev-generalize-ch32 branch May 24, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant