From 8204b9ce59da09605a144503221516c8de0b856a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 9 Sep 2017 11:23:11 +0000 Subject: Added wakeup bit clear on interrupt. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10571 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'os/hal/ports/STM32/LLD') diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c index 7cf690f5d..29e70165d 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c @@ -556,6 +556,9 @@ static void usb_lld_serve_interrupt(USBDriver *usbp) { otgp->PCGCCTL &= ~(PCGCCTL_STPPCLK | PCGCCTL_GATEHCLK); } + /* Clear the Remote Wake-up Signaling.*/ + otgp->DCTL &= ~DCTL_RWUSIG; + _usb_wakeup(usbp); } -- cgit v1.2.3