Add free function to UsbAllocator#137
Add free function to UsbAllocator#137jnthbdn wants to merge 1 commit intorust-embedded-community:masterfrom
free function to UsbAllocator#137Conversation
eldruin
left a comment
There was a problem hiding this comment.
I am not sure it makes sense to allow this.
Maybe somebody else can comment like @ryan-summers ?
|
Yeah I'm also not sure this makes sense to allow. Can you elaborate on what the necessary use case is here? |
|
Hello, Thank you for your feedback. I've added this function to make the link with the PR725 (rp-rs/rp-hal#725) from rp-hal. |
|
It would be nice to have the ability to tear down structures - I could imagine this being useful for implementing a low power device that usually keeps the USB peripheral powered down, for instance. However, I see two issues with this implementation:
|
Allowing users to free the UsbBus from the UsbAllocator.