alif/tinyusb_port: Disable USB IRQ on deinit.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
committed by
Damien George
parent
092d85557c
commit
ebecd6d101
@@ -460,6 +460,8 @@ void dcd_uninit(void)
|
|||||||
enable_usb_phy_isolation(); // enable usb phy isolation
|
enable_usb_phy_isolation(); // enable usb phy isolation
|
||||||
disable_usb_phy_power(); // power down usb phy
|
disable_usb_phy_power(); // power down usb phy
|
||||||
disable_usb_periph_clk(); // disable usb peripheral clock
|
disable_usb_periph_clk(); // disable usb peripheral clock
|
||||||
|
dcd_int_disable(TUD_OPT_RHPORT);
|
||||||
|
NVIC_ClearPendingIRQ(USB_IRQ_IRQn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void USB_IRQHandler(void)
|
void USB_IRQHandler(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user