Fix Serial RX and add option for FIFO Full Threshold in Serial.begin

Fixes: https://github.com/espressif/arduino-esp32/issues/5005
This commit is contained in:
me-no-dev
2021-04-08 15:29:53 +03:00
parent 425619dfea
commit 371f382db7
5 changed files with 25 additions and 18 deletions

View File

@ -51,7 +51,7 @@ extern "C" {
struct uart_struct_t;
typedef struct uart_struct_t uart_t;
uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rxPin, int8_t txPin, uint16_t queueLen, bool inverted);
uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rxPin, int8_t txPin, uint16_t queueLen, bool inverted, uint8_t rxfifo_full_thrhd);
void uartEnd(uart_t* uart, uint8_t rxPin, uint8_t txPin);
uint32_t uartAvailable(uart_t* uart);