File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,27 @@ typedef enum {
9999} hardwareSerial_error_t;
100100
101101#ifndef ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
102+ #ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
102103#define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE 2048
104+ #else
105+ #define ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE CONFIG_ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
106+ #endif
103107#endif
104108
105109#ifndef ARDUINO_SERIAL_EVENT_TASK_PRIORITY
110+ #ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_PRIORITY
106111#define ARDUINO_SERIAL_EVENT_TASK_PRIORITY (configMAX_PRIORITIES - 1 )
112+ #else
113+ #define ARDUINO_SERIAL_EVENT_TASK_PRIORITY CONFIG_ARDUINO_SERIAL_EVENT_TASK_PRIORITY
114+ #endif
107115#endif
108116
109117#ifndef ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
118+ #ifndef CONFIG_ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
110119#define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE -1
120+ #else
121+ #define ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE CONFIG_ARDUINO_SERIAL_EVENT_TASK_RUNNING_CORE
122+ #endif
111123#endif
112124
113125// UART0 pins are defined by default by the bootloader.
You can’t perform that action at this time.
0 commit comments