Commit 3a723ad2 authored by Damien George's avatar Damien George

stm32/usb: Fully deinitialise USB periph when it is deactivated.

parent 5f67b03e
......@@ -166,6 +166,7 @@ void pyb_usb_dev_deinit(void) {
usb_device_t *usb_dev = &usb_device;
if (usb_dev->enabled) {
USBD_Stop(&usb_dev->hUSBDDevice);
USBD_DeInit(&usb_dev->hUSBDDevice);
usb_dev->enabled = false;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment