git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9879 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-10-26 11:12:01 +00:00
parent 6172fdfb71
commit e523acf824
2 changed files with 11 additions and 3 deletions

View File

@ -414,11 +414,17 @@ static void otg_epout_handler(USBDriver *usbp, usbep_t ep) {
/* Setup packets handling, setup packets are handled using a
specific callback.*/
_usb_isr_invoke_setup_cb(usbp, ep);
}
if ((epint & DOEPINT_XFRC) && (otgp->DOEPMSK & DOEPMSK_XFRCM)) {
/* Receive transfer complete.*/
USBOutEndpointState *osp = usbp->epc[ep]->out_state;
USBOutEndpointState *osp;
/* Receive transfer complete, checking if it is a SETUP transfer on EP0,
that it must be ignored, the STUPM handler will take care of it.*/
if ((ep == 0) && (usbp->ep0state == USB_EP0_WAITING_SETUP))
return;
/* OUT state structure pointer for this endpoint.*/
osp = usbp->epc[ep]->out_state;
/* A short packet always terminates a transaction.*/
if (((osp->rxcnt % usbp->epc[ep]->out_maxsize) == 0) &&

View File

@ -147,6 +147,8 @@
- RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
- HAL: Fixed OTGv1 driver not functional on STM32L4 (bug #786)(backported
to 16.1.6).
- HAL: Fixed wrong bit offset in STM32F37x ADC_CR2_EXTSEL_SRC() macro
(bug #785)(backported to 16.1.6, 3.0.6).
- RT: Fixed tick-less mode can fail in RT for very large delays (bug #784)