diff options
| author | Geurt Vos <[email protected]> | 2026-07-29 12:00:59 +0200 |
|---|---|---|
| committer | Geurt Vos <[email protected]> | 2026-07-29 12:00:59 +0200 |
| commit | 530c6708dd6f863e6ad91bc0e3433f887555999a (patch) | |
| tree | 128a794fb373d42a3e6eae05d801a7ce490fd0fa /src | |
| parent | 84e938bd7661a862589a92635d77f1b7e4a02484 (diff) | |
also added rp2usb_deinit() call to hcd_deinit()
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/hcd_rp2040.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c index 28dc7f93c..a04890835 100644 --- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c +++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c @@ -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; } |
