8000 USB implementation for Raspberry Pi Pico by TeodoraMiu · Pull Request #3310 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 11 commits into from
Dec 16, 2022

Conversation

TeodoraMiu
Copy link
Contributor
@TeodoraMiu TeodoraMiu commented Nov 2, 2022

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

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Copy link
Contributor
@twilfredo twilfredo left a 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

@alexandruradovici
Copy link
Contributor

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.

hudson-ayers
hudson-ayers previously approved these changes Nov 11, 2022
Copy link
Contributor
@hudson-ayers hudson-ayers left a 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.

twilfredo
twilfredo previously approved these changes Nov 12, 2022
Co-authored-by: Alexandru Radovici <msg4alex@gmail.com>
@TeodoraMiu
Copy link
Contributor Author

I updated the makefile so that the kernel can also be flashed to the pico via bootsel. Is there anything else that needs changing?

Copy link
Contributor
@hudson-ayers hudson-ayers left a 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

@alexandruradovici
Copy link
Contributor

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.

@bradjc
Copy link
Contributor
bradjc commented Dec 16, 2022

bors r+

@bors
Copy link
Contributor
bors bot commented Dec 16, 2022

@bors bors bot merged commit e8376fa into tock:master Dec 16, 2022
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.

5 participants
0