mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00:00
TXFE is read only bit
This commit is contained in:
parent
d0487088ac
commit
e785b09118
@ -679,7 +679,8 @@ static void handle_epin_ints(USB_OTG_DeviceTypeDef * dev, USB_OTG_INEndpointType
|
|||||||
// XFER FIFO empty
|
// XFER FIFO empty
|
||||||
if ( in_ep[n].DIEPINT & USB_OTG_DIEPINT_TXFE )
|
if ( in_ep[n].DIEPINT & USB_OTG_DIEPINT_TXFE )
|
||||||
{
|
{
|
||||||
in_ep[n].DIEPINT = USB_OTG_DIEPINT_TXFE;
|
// DIEPINT's TXFE bit is read-only -> no need to clear
|
||||||
|
|
||||||
transmit_packet(xfer, &in_ep[n], n);
|
transmit_packet(xfer, &in_ep[n], n);
|
||||||
|
|
||||||
// Turn off TXFE if all bytes are written.
|
// Turn off TXFE if all bytes are written.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user