Implements tuh_deinit() and tud_deinit() to uninitialize host/device mode.

This commit is contained in:
Felix "xq" Queißner
2023-01-02 17:09:45 +01:00
committed by hathach
parent bc10394e66
commit 47c12a07f2
4 changed files with 27 additions and 1 deletions

View File

@@ -409,6 +409,14 @@ bool hcd_init(uint8_t rhport)
return true;
}
void hcd_deinit(uint8_t rhport) {
(void) rhport;
irq_remove_handler(USBCTRL_IRQ, hcd_rp2040_irq);
reset_block(RESETS_RESET_USBCTRL_BITS);
unreset_block_wait(RESETS_RESET_USBCTRL_BITS);
}
void hcd_port_reset(uint8_t rhport)
{
(void) rhport;