bdk: xusb: fully clear device mode ctrl register on deinit

This commit is contained in:
CTCaer committed 2022-07-11 22:13:13 +03:00
1 parent d259d6f6d6
commit 801ebd3543
1 file changed
+1 -1
+1 -1
View File
@@ -1996,7 +1996,7 @@ void xusb_end(bool reset_ep, bool only_controller)
_xusb_disable_ep1();
// Disable device mode.
XUSB_DEV_XHCI(XUSB_DEV_XHCI_CTRL) &= ~XHCI_CTRL_ENABLE;
XUSB_DEV_XHCI(XUSB_DEV_XHCI_CTRL) = 0;
//! TODO: Add only controller support?
_xusb_device_power_down();