diff --git a/src/bus.rs b/src/bus.rs index 398b192..5c7b534 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -316,6 +316,11 @@ impl UsbBusAllocator { self.alloc(None, EndpointType::Interrupt, max_packet_size, interval) .expect("alloc_ep failed") } + + /// Free the UsbBus + pub fn free(self) -> B { + self.bus.into_inner() + } } /// A handle for a USB interface that contains its number.