NUC123 USB add wakeup callback when ISR detects resume signal
This commit is contained in:
parent
891a0b3898
commit
8854febc0b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue