From 8854febc0b9cad8eb5c146d68b817e5b0f97781a Mon Sep 17 00:00:00 2001 From: Alex Lewontin Date: Wed, 23 Dec 2020 20:22:09 -0500 Subject: [PATCH] NUC123 USB add wakeup callback when ISR detects resume signal --- os/hal/ports/NUMICRO/LLD/USBv1/hal_usb_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/ports/NUMICRO/LLD/USBv1/hal_usb_lld.c b/os/hal/ports/NUMICRO/LLD/USBv1/hal_usb_lld.c index fd1c2541..43d33b4a 100644 --- a/os/hal/ports/NUMICRO/LLD/USBv1/hal_usb_lld.c +++ b/os/hal/ports/NUMICRO/LLD/USBv1/hal_usb_lld.c @@ -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); } }