TXFE is read only bit

This commit is contained in:
hathach 2020-04-27 12:06:14 +07:00
parent d0487088ac
commit e785b09118
1 changed files with 2 additions and 1 deletions

View File

@ -679,7 +679,8 @@ static void handle_epin_ints(USB_OTG_DeviceTypeDef * dev, USB_OTG_INEndpointType
// XFER FIFO empty
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);
// Turn off TXFE if all bytes are written.