-
Notifications
You must be signed in to change notification settings - Fork 747
USB implementation for Raspberry Pi Pico #3310
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
USB implementation for Raspberry Pi Pico #3310
Conversation
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.
other than the style stuff, lgtm
Any feedback on the USB implementation would be very much appreciated. If this looks good from the USB side, merging this quickly would allow educators to use the Raspberry Pi with Tock, as it does not have a hardware serial to USB line. |
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.
I have not reviewed every file here in detail, but it is confined to boards/
/ chips/
and I looked at each use of unsafe. If it works, that is good enough for me.
d96aec0
Co-authored-by: Alexandru Radovici <msg4alex@gmail.com>
I updated the makefile so that the kernel can also be flashed to the pico via bootsel. Is there anything else that needs changing? |
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.
LGTM, I have not tested the flashing but the instructions look complete enough
Is there anything that we have to do for the PR? I would help us if we could merge this as we can use the Raspberry Pi easier. |
bors r+ |
Pull Request Overview
This pull request adds USB functionality for the Raspberry Pi Pico board. It was implemented together with @cosmindanielradu19 and was inspired by the USB implementation for the nrf52 board. This PR allows write (IN) transfers over USB for the Raspberry Pi Pico (which means that users are able to see output messages over the console) and read (OUT) transfers (users can send input to the board through the console). Panics are still written to UART.
Testing Strategy
This pull request was tested using a Raspberry Pi Pico.
TODO or Help Wanted
This pull request still needs feedback as this was heavily inspired from nrf52.
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.