diff options
| author | hathach <[email protected]> | 2020-04-27 13:17:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-27 13:17:47 +0700 |
| commit | 958b5510cb9ac913b30772ec248e0ffcd3827890 (patch) | |
| tree | a6b2c342511ac2f7dea90919c726a569b1c11e93 /src | |
| parent | e785b091184b5e741d9c2ade0b54bca651834bd1 (diff) | |
added comment for hw clearing TXFE
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/st/synopsys/dcd_synopsys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c index b479930ed..4e0d6f8c4 100644 --- a/src/portable/st/synopsys/dcd_synopsys.c +++ b/src/portable/st/synopsys/dcd_synopsys.c @@ -679,7 +679,10 @@ static void handle_epin_ints(USB_OTG_DeviceTypeDef * dev, USB_OTG_INEndpointType // XFER FIFO empty if ( in_ep[n].DIEPINT & USB_OTG_DIEPINT_TXFE ) { - // DIEPINT's TXFE bit is read-only -> no need to clear + // DIEPINT's TXFE bit is read-only, software cannot clear it. + // It will only be cleared by hardware when written bytes is more than + // - 64 bytes or + // - Half of TX FIFO size (configured by DIEPTXF) transmit_packet(xfer, &in_ep[n], n); |
