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:
Giovanni Di Sirio 2019-10-27 07:33:35 +00:00
parent 82f2fdb126
commit 8e583ad3e5
1 changed files with 4 additions and 0 deletions

View File

@ -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
{