mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 01:21:20 +00:00
fix issue with cdc write failed sometimes
This commit is contained in:
parent
d5e58ba024
commit
b07124c623
@ -70,11 +70,12 @@ typedef struct
|
|||||||
{
|
{
|
||||||
uint8_t* buffer;
|
uint8_t* buffer;
|
||||||
uint16_t total_len;
|
uint16_t total_len;
|
||||||
uint16_t actual_len;
|
volatile uint16_t actual_len;
|
||||||
uint8_t mps; // max packet size
|
uint8_t mps; // max packet size
|
||||||
|
|
||||||
// nrf52840 will auto ACK OUT packet after DMA is done
|
// nrf52840 will auto ACK OUT packet after DMA is done
|
||||||
volatile bool data_received; // indicate packet is already ACK
|
// indicate packet is already ACK
|
||||||
|
volatile bool data_received;
|
||||||
|
|
||||||
} nom_xfer_t;
|
} nom_xfer_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user