NUC123 USB add wakeup callback when ISR detects resume signal

This commit is contained in:
Alex Lewontin 2020-12-23 20:22:09 -05:00
parent 891a0b3898
commit 8854febc0b
No known key found for this signature in database
GPG Key ID: 52A3855FC3BB8CD7
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ static void usb_lld_serve_interrupt(USBDriver* usbp)
if (bussts & USBD_ATTR_RESUME_Msk) {
/* Enable USB and enable PHY */
USBD->ATTR |= (USBD_ATTR_PHY_EN_Msk | USBD_ATTR_USB_EN_Msk);
_usb_wakeup(usbp);
}
}