Test workaround on suspend state.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13146 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
82f2fdb126
commit
8e583ad3e5
|
@ -720,6 +720,10 @@ void _usb_suspend(USBDriver *usbp) {
|
|||
/* Notification of suspend event.*/
|
||||
_usb_isr_invoke_event_cb(usbp, USB_EVENT_SUSPEND);
|
||||
|
||||
/* Terminating all pending transactions.*/
|
||||
usbp->transmitting = 0;
|
||||
usbp->receiving = 0;
|
||||
|
||||
/* Signaling the event to threads waiting on endpoints.*/
|
||||
#if USB_USE_WAIT == TRUE
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue