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

Add Host support for ch32v20x usbfs #2793

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

verylowfreq
Copy link

This PR adds HCD for WCH CH32V20x USBFS (USBOTG_FS).

The following issue will be closed:

CH32V20x has two USB peripheral; FSDEV and USBFS. In this PR, USBFS Host driver is enabled when PORT=0 (FSDEV is selected).

I tested on my original CH32V203C8T6 board "Suzuno32RV" (8MHz external crystal, Type-A connector is assigned for USBFS, Type-C connector is for FSDEV).
Please refer for schematic: https://github.com/verylowfreq/board_suzuno32rv

@hathach
Copy link
Owner

hathach commented Sep 10, 2024

Thank you for your PR, can you pull/merge from master, which include a fix to circleci build.

@verylowfreq
Copy link
Author

@hathach Thanks for reply. It seems that my branch is already up-to-date and I couldn't merge more commits. How can I do pull/merge?
My "pr-ch32v-usbfs-host" branch's commits:
image

@hathach
Copy link
Owner

hathach commented Sep 11, 2024

sorry, my bad, previous master isn't fix that yet. I have fixed merged and also fixed the pre-commit format as well. It is all good now.

@verylowfreq
Copy link
Author

Thank you. I found that the CI failed at macro related problem ("Build / cmake (riscv-gcc)"), so I added commits to solve it.

@hathach
Copy link
Owner

hathach commented Sep 16, 2024

thank you, I am current working on other stuffs, please give me a bit of time to review this.

@verylowfreq
Copy link
Author

@hathach Thank you for sharing your status! I'm preparing to release my Suzuno32RV MCU board, which I used for testing, and I'm also working on porting Adafruit_TinyUSB_Arduino.

My fork of Adafruit_TinyUSB_Arduino:
(Currently, copying ch32v20x_usb.h to arduino_core_ch32 folder is needed to build.)
https://github.com/verylowfreq/Adafruit_TinyUSB_Arduino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants