also added rp2usb_deinit() call to hcd_deinit()

This commit is contained in:
Geurt Vos
2026-07-29 12:00:59 +02:00
parent 84e938bd76
commit 530c6708dd

View File

@ -427,6 +427,10 @@ bool hcd_deinit(uint8_t rhport) {
irq_remove_handler(USBCTRL_IRQ, hcd_rp2040_irq);
reset_block(RESETS_RESET_USBCTRL_BITS);
unreset_block_wait(RESETS_RESET_USBCTRL_BITS);
// Release allocated resources
rp2usb_deinit();
return true;
}