Skip to content

Conversation

@moore
Copy link

@moore moore commented Nov 15, 2025

The branch https://github.com/ch32-rs/ch32-hal/tree/usbd-example seems to be abandoned, this attempts to incorporate the comments on the branch and update to main.

Noxime and others added 5 commits April 24, 2025 22:41
The driver works for the most part, except you must for some reason
use the arch-spin executor to make it work. Perhaps something is
wrong in the interrupts?

Do not merge in the current form!
let regs = T::regs();
let x = regs.istr().read().0;
crate::println!("USB IRQ: {:08x}", x);
// let x = regs.istr().read().0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we don't leave code just "commented out"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just remove them.

Copy link
Member

@Codetector1374 Codetector1374 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, given it only touches example and remove prints from usbd driver. Once we cleanup the commented out prints in the driver I think this is good to go.

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