SAM4E UDP: Remove spurious clearing of RXSETUP
This commit is contained in:
parent
82c93c91ea
commit
1da26f8f04
@ -2129,7 +2129,11 @@ static void sam_ep_interrupt(struct sam_usbdev_s *priv, int epno)
|
||||
|
||||
sam_ep0_read((uint8_t *)&priv->ctrl, USB_SIZEOF_CTRLREQ);
|
||||
|
||||
/* Acknowledge SETUP packet */
|
||||
/* Clear the RXSETUP indication. RXSETUP cannot be cleared before the
|
||||
* SETUP packet has been read in from the FIFO. Otherwise, the USB
|
||||
* device would accept the next Data OUT transfer and overwrite the
|
||||
* SETUP packet in the FIFO.
|
||||
*/
|
||||
|
||||
sam_csr_clrbits(epno, UDPEP_CSR_RXSETUP);
|
||||
|
||||
@ -2155,14 +2159,6 @@ static void sam_ep_interrupt(struct sam_usbdev_s *priv, int epno)
|
||||
privep->epstate = UDP_EPSTATE_IDLE;
|
||||
sam_ep0_setup(priv);
|
||||
}
|
||||
|
||||
/* Clear the RXSETUP indication. RXSETUP cannot be cleared before the
|
||||
* SETUP packet has been read in the FIFO. Otherwise, the USB device
|
||||
* would accept the next Data OUT transfer and overwrite the SETUP
|
||||
* packet in the FIFO.
|
||||
*/
|
||||
|
||||
sam_csr_clrbits(epno, UDPEP_CSR_RXSETUP);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user