-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Receive data over USB #35
Conversation
The library only have 4 endpoint supported while the chip have capable of 8. And its design is kind of cumbersome.
@sourcery-ai review |
Reviewer's Guide by SourceryThis pull request implements the feature to receive data over USB by redesigning the USB device handling and adding new composite devices for HID and CDC-ACM serial communication. It also enables debugging over UART and removes the old USB device implementation from the StdPeriphDriver. File-Level Changes
Tips
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kienvo - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Hard-coded USB vendor information found. (link)
- Hard-coded USB product information found. (link)
- Hard-coded USB serial number found. (link)
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🔴 Security: 3 blocking issues
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Resolve #24
Changes:
stty -F /dev/ttyACM0 raw && cat ledbadge.bin > /dev/ttyACM0
. This cdc serial was implemented for sending data to the host and act like an uart tx, which could be useful for logging.Summary by Sourcery
This pull request adds the ability to receive data over USB by implementing a composite HID device and a CDC-ACM serial interface. It also includes a redesign of the USB device handling to support more endpoints and introduces debugging over UART.