Added wake-up and suspend events to OTGv1.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8285 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2015-09-08 09:16:15 +00:00
parent 8718997f87
commit 4376041f33
2 changed files with 7 additions and 1 deletions

View File

@ -588,11 +588,16 @@ 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);
}
/* Suspend handling.*/
if (sts & GINTSTS_USBSUSP) {
/* TODO: Implement suspend mode.*/
/* Signaling the suspend event.*/
_usb_isr_invoke_event_cb(usbp, USB_EVENT_SUSPEND);
}
/* Reset interrupt handling.*/

View File

@ -73,6 +73,7 @@
*****************************************************************************
*** 3.1.0 ***
- HAL: Added wake-up and suspend events to the STM32 OTGv1 driver.
- HAL: STM32 USB/OTG buffers and queues do not more require to be aligned in
position and size.
- VAR: Improved GCC rules.ld, now it is possible to assign the heap to any