Skip to content

Initial CH32H41X support#3642

Draft
rhgndf wants to merge 3 commits into
hathach:masterfrom
rhgndf:ch32h41x
Draft

Initial CH32H41X support#3642
rhgndf wants to merge 3 commits into
hathach:masterfrom
rhgndf:ch32h41x

Conversation

@rhgndf
Copy link
Copy Markdown
Contributor

@rhgndf rhgndf commented May 14, 2026

USB2 for CH32H41X, have not tested for all the possible firmwares yet. cdc_msc and uac2 seems to work. There is USB3 on the chip but this PR doesn't include it, I couldn't get it working.

Modified the dcd_ch32_usbhs driver by adding chip specific includes, inspired by the dwc2_* files. Maybe #3515 might be able to follow the same pattern.

@github-actions
Copy link
Copy Markdown

MemBrowse Memory Report

Top 10 targets by memory change (%) (out of 2253 targets) View Project Dashboard →

target .text .rodata .data .bss total % diff
ch32v307v_r1_1v0/hid_multiple_interface 10,852 → 10,864 (+12) 11,348 → 11,360 (+12) +0.1%
ch32v307v_r1_1v0/hid_boot_interface 10,876 → 10,888 (+12) 11,372 → 11,384 (+12) +0.1%
ch32v307v_r1_1v0/hid_composite 11,224 → 11,236 (+12) 11,720 → 11,732 (+12) +0.1%
ch32v307v_r1_1v0/midi_test 11,360 → 11,372 (+12) 11,856 → 11,868 (+12) +0.1%
ch32v307v_r1_1v0/cdc_uac2 16,536 → 16,552 (+16) 17,044 → 17,060 (+16) +0.1%
ch32v307v_r1_1v0/audio_test 12,508 → 12,520 (+12) 13,020 → 13,032 (+12) +0.1%
ch32v307v_r1_1v0/cdc_dual_ports 12,596 → 12,608 (+12) 13,092 → 13,104 (+12) +0.1%
ch32v307v_r1_1v0/usbtmc 13,488 → 13,500 (+12) 14,104 → 14,116 (+12) +0.1%
ch32v307v_r1_1v0/uac2_headset 14,720 → 14,732 (+12) 15,236 → 15,248 (+12) +0.1%
ch32v307v_r1_1v0/hid_generic_inout 10,032 → 10,040 (+8) 10,528 → 10,536 (+8) +0.1%

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.

1 participant