diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-09 11:23:11 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-09 11:23:11 +0000 |
commit | 8204b9ce59da09605a144503221516c8de0b856a (patch) | |
tree | c7fc9235832f62a88d45b074c09ba5e9b66775ff | |
parent | 7da97fec6a03aaecd0238c5b7ac46651bbd080d5 (diff) | |
download | ChibiOS-8204b9ce59da09605a144503221516c8de0b856a.tar.gz ChibiOS-8204b9ce59da09605a144503221516c8de0b856a.tar.bz2 ChibiOS-8204b9ce59da09605a144503221516c8de0b856a.zip |
Added wakeup bit clear on interrupt.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10571 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c | 3 |
1 files changed, 3 insertions, 0 deletions
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);
}
|