mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
clean up
This commit is contained in:
parent
3ace03cbc7
commit
19807f0c07
@ -70,7 +70,7 @@ typedef struct
|
|||||||
uint16_t actual_len;
|
uint16_t actual_len;
|
||||||
uint8_t mps; // max packet size
|
uint8_t mps; // max packet size
|
||||||
|
|
||||||
// FIXME nrf52840 does not NAK OUT packet properly
|
// FIXME nrf52840 auto ACK OUT packet after DMA is done
|
||||||
bool data_received;
|
bool data_received;
|
||||||
|
|
||||||
} nom_xfer_t;
|
} nom_xfer_t;
|
||||||
@ -316,7 +316,7 @@ bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
|
|||||||
{
|
{
|
||||||
xfer->data_received = false;
|
xfer->data_received = false;
|
||||||
|
|
||||||
// FIXME nrf52840 does not NAK OUT packet properly
|
// FIXME nrf52840 auto ACK OUT packet after DMA is done
|
||||||
// Data already received preivously
|
// Data already received preivously
|
||||||
xact_out_dma(epnum);
|
xact_out_dma(epnum);
|
||||||
}else
|
}else
|
||||||
@ -491,8 +491,7 @@ void USBD_IRQHandler(void)
|
|||||||
xact_out_dma(epnum);
|
xact_out_dma(epnum);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
// FIXME nrf52840 does not NAK OUT packet properly
|
// FIXME nrf52840 auto ACK OUT packet after DMA is done
|
||||||
// It will always ACK next package although we haven't write to SIZE yet
|
|
||||||
|
|
||||||
// Mark this endpoint with data received
|
// Mark this endpoint with data received
|
||||||
xfer->data_received = true;
|
xfer->data_received = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user