usb/uart: increase tx buffer to cope with the large setup messages

This commit is contained in:
King Kévin 2020-02-19 20:53:06 +01:00
parent 4ee0c0bbc6
commit 749d925bb8
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
#define UART_BAUDRATE 921600 /**< serial baud rate, in bits per second (with 8N1 8 bits, no parity bit, 1 stop bit settings) */
/* output ring buffer, indexes, and available memory */
static volatile uint8_t tx_buffer[64] = {0}; /**< ring buffer for data to transmit */
static volatile uint8_t tx_buffer[255] = {0}; /**< ring buffer for data to transmit */
static volatile uint16_t tx_i = 0; /**< current position of transmitted data */
static volatile uint16_t tx_used = 0; /**< how much data needs to be transmitted */

View File

@ -47,7 +47,7 @@ static usbd_device *usb_device = NULL; /**< structure holding all the info relat
static volatile bool first_connection = false; /**< used to detect when the first connection occurred */
/* output ring buffer, index, and available memory */
static uint8_t tx_buffer[256] = {0}; /**< ring buffer for data to transmit */
static uint8_t tx_buffer[512] = {0}; /**< ring buffer for data to transmit */
static volatile uint16_t tx_i = 0; /**< current position if transmitted data */
static volatile uint16_t tx_used = 0; /**< how much data needs to be transmitted */
static volatile bool tx_lock = false; /**< if the transmit buffer is currently being written */