Bläddra i källkod

T4 USB serial receive buffer defaults to 4096 bytes

teensy4-core
PaulStoffregen 5 år sedan
förälder
incheckning
3ad45ddaf9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      teensy4/usb_serial.c

+ 1
- 1
teensy4/usb_serial.c Visa fil

static uint16_t tx_available=0; static uint16_t tx_available=0;
static uint16_t tx_packet_size=0; static uint16_t tx_packet_size=0;


#define RX_NUM 3
#define RX_NUM 8
static transfer_t rx_transfer[RX_NUM] __attribute__ ((used, aligned(32))); static transfer_t rx_transfer[RX_NUM] __attribute__ ((used, aligned(32)));
DMAMEM static uint8_t rx_buffer[RX_NUM * CDC_RX_SIZE_480] __attribute__ ((aligned(32))); DMAMEM static uint8_t rx_buffer[RX_NUM * CDC_RX_SIZE_480] __attribute__ ((aligned(32)));
static uint16_t rx_count[RX_NUM]; static uint16_t rx_count[RX_NUM];

Laddar…
Avbryt
Spara