diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-09-08 10:43:31 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-09-08 10:43:31 +0000 |
commit | aa7557a5f206124dc232343be2010f7d9b82e267 (patch) | |
tree | 0a84f3ded31ee0ad2d63d283af0ea7ce8b0fdab6 /os/hal/ports | |
parent | 4376041f33960189d088ac3d87b7cab178269484 (diff) | |
download | ChibiOS-aa7557a5f206124dc232343be2010f7d9b82e267.tar.gz ChibiOS-aa7557a5f206124dc232343be2010f7d9b82e267.tar.bz2 ChibiOS-aa7557a5f206124dc232343be2010f7d9b82e267.zip |
USB suspend mode.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8286 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/usb_lld.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c index 33f3b43c4..b6d2f1cdd 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c @@ -589,21 +589,19 @@ static void usb_lld_serve_interrupt(USBDriver *usbp) { /* Clear the Remote Wake-up Signaling.*/
otgp->DCTL |= DCTL_RWUSIG;
- /* Signaling the wakeup event.*/
- _usb_isr_invoke_event_cb(usbp, USB_EVENT_WAKEUP);
+ _usb_wakeup(usbp);
}
/* Suspend handling.*/
if (sts & GINTSTS_USBSUSP) {
- /* Signaling the suspend event.*/
- _usb_isr_invoke_event_cb(usbp, USB_EVENT_SUSPEND);
+ _usb_suspend(usbp);
}
/* Reset interrupt handling.*/
if (sts & GINTSTS_USBRST) {
+
_usb_reset(usbp);
- _usb_isr_invoke_event_cb(usbp, USB_EVENT_RESET);
}
/* Enumeration done.*/
|