Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

USB device support #39

Open
r4gus opened this issue Apr 10, 2023 · 1 comment
Open

USB device support #39

r4gus opened this issue Apr 10, 2023 · 1 comment

Comments

@r4gus
Copy link
Contributor

r4gus commented Apr 10, 2023

I've ported the usb bulk example (found in the rp2040 datasheet) to Zig. The Rust implementation of Cliff Biffle with all the comments helped a lot.

I want to add support for usb interrupt endpoints before I open an pull request but let me know what you think.

Link to the usb device impl: https://github.com/r4gus/raspberrypi-rp2040/blob/2nd-usb-attempt/src/hal/usb.zig
Link to the example: https://github.com/r4gus/raspberrypi-rp2040/blob/2nd-usb-attempt/examples/usb_device.zig
Link to a python test script: https://github.com/raspberrypi/pico-examples/blob/master/usb/device/dev_lowlevel/dev_lowlevel_loopback.py

You can also get some debug output over uart

@ikskuh
Copy link
Contributor

ikskuh commented Apr 12, 2023

That sounds pretty damn cool! Feel free to open a draft PR so we can see updates :)

@r4gus r4gus mentioned this issue Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants