Implementation of postcard-rpc using usb-gadget (OTG)#142
Conversation
|
I'm not really sure how the ci works here, but the How can we tell the CI only to build that specific example on Linux, or somehow let rustc know not to attempt to link it? |
|
Hey @dingari, right now:
If you need this to only be run on linux, feel free to make a new |
|
Makes sense, thanks! Fwiw it may just be enough to do |
1c5f6a7 to
5696753
Compare
|
I rebased this on top of main (too bad missing the 0.12 release). I think this should be OK to merge in the next release? P.s. I also filled in the |
|
Thanks @dingari! Let's see if CI is green now, happy to cut a 0.12.1 release once we have this ready. |
|
Cool, I just added |
|
Hey @jamesmunns any idea on when a new release might be released? :) |
|
@dingari thanks for the reping! v0.12.1 is now released! 🎉 |
Allows Linux systems with access to a UDC supporting OTG gadget mode to run as a postcard-rpc server (device mode).
Adds usb-gadget dependency and requires
--features usb-gadgetI added a small ping example in the examples directory.
I've tested this on a Radxa CM5 board with both Linux and macOS hosts with good results.
Note: I've left
send_log_strandsend_log_fmtunimplemented (I don't use them and I don't understand fully how they work), but would probably be easy to port the impl from one of the eusb servers.