Fix HardwareSerial config (#11007)
This commit is contained in:
parent
1467d87454
commit
09d89c6da1
2 changed files with 12 additions and 12 deletions
|
|
@ -11,18 +11,6 @@
|
||||||
#include "driver/uart.h"
|
#include "driver/uart.h"
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
|
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE 2048
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_PRIORITY
|
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
|
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE -1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SOC_UART_LP_NUM >= 1)
|
#if (SOC_UART_LP_NUM >= 1)
|
||||||
#define UART_HW_FIFO_LEN(uart_num) ((uart_num < SOC_UART_HP_NUM) ? SOC_UART_FIFO_LEN : SOC_LP_UART_FIFO_LEN)
|
#define UART_HW_FIFO_LEN(uart_num) ((uart_num < SOC_UART_HP_NUM) ? SOC_UART_FIFO_LEN : SOC_LP_UART_FIFO_LEN)
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -97,15 +97,27 @@ typedef enum {
|
||||||
} hardwareSerial_error_t;
|
} hardwareSerial_error_t;
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
|
#ifndef ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
|
||||||
|
#ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE 2048
|
#define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE 2048
|
||||||
|
#else
|
||||||
|
#define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE CONFIG_ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_PRIORITY
|
#ifndef ARDUINO_SERIAL_EVENT_TASK_PRIORITY
|
||||||
|
#ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_PRIORITY
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
#define ARDUINO_SERIAL_EVENT_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
||||||
|
#else
|
||||||
|
#define ARDUINO_SERIAL_EVENT_TASK_PRIORITY CONFIG_ARDUINO_SERIAL_EVENT_TASK_PRIORITY
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
|
#ifndef ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
|
||||||
|
#ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
|
||||||
#define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE -1
|
#define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE -1
|
||||||
|
#else
|
||||||
|
#define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE CONFIG_ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// UART0 pins are defined by default by the bootloader.
|
// UART0 pins are defined by default by the bootloader.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue