Skip to content

Add Support for Multiple CDC Drivers#722

Merged
mattnite merged 2 commits intoZigEmbeddedGroup:mainfrom
eugenepentland:main
Nov 5, 2025
Merged

Add Support for Multiple CDC Drivers#722
mattnite merged 2 commits intoZigEmbeddedGroup:mainfrom
eugenepentland:main

Conversation

@eugenepentland
Copy link
Contributor

Old code would just return after setting up the first driver. I removed that and had to update the CDC driver to have its own is_ready flag. There is a global ready flag in core/usb.zig but when you have multiple devices, if you connect to one cdc device and try writing to the disconnected one, it stalls out because that is_ready flag is set true.

I've tested this updated code on the RP2350B for reading/writing data to both drivers without any issues.

@mattnite mattnite merged commit 9f6b705 into ZigEmbeddedGroup:main Nov 5, 2025
48 checks passed
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.

3 participants