Add sdkconfig option CONFIG_ARDUINO_UDP_TASK_PRIORITY, which sets the task priority for the UDP vtask." (#4131)
This commit is contained in:
parent
76cd2e2375
commit
0e341a6192
@ -82,6 +82,9 @@ config ARDUINO_UDP_RUNNING_CORE
|
||||
default 1 if ARDUINO_UDP_RUN_CORE1
|
||||
default -1 if ARDUINO_UDP_RUN_NO_AFFINITY
|
||||
|
||||
config CONFIG_ARDUINO_UDP_TASK_PRIORITY
|
||||
int
|
||||
default 3
|
||||
|
||||
config DISABLE_HAL_LOCKS
|
||||
bool "Disable mutex locks for HAL"
|
||||
|
@ -150,7 +150,7 @@ static bool _udp_task_start(){
|
||||
}
|
||||
}
|
||||
if(!_udp_task_handle){
|
||||
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, 3, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
|
||||
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, CONFIG_ARDUINO_UDP_TASK_PRIORITY, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
|
||||
if(!_udp_task_handle){
|
||||
return false;
|
||||
}
|
||||
|
@ -364,6 +364,7 @@
|
||||
#define CONFIG_MB_TIMER_PORT_ENABLED 1
|
||||
#define CONFIG_DUPLICATE_SCAN_CACHE_SIZE 20
|
||||
#define CONFIG_ARDUINO_UDP_RUNNING_CORE 1
|
||||
#define CONFIG_ARDUINO_UDP_TASK_PRIORITY 3
|
||||
#define CONFIG_MONITOR_BAUD_OTHER_VAL 115200
|
||||
#define CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF 1
|
||||
#define CONFIG_ESPTOOLPY_PORT "/dev/cu.usbserial-DO00EAB0"
|
||||
|
@ -36,6 +36,7 @@ CONFIG_ARDUINO_UDP_RUN_CORE0=
|
||||
CONFIG_ARDUINO_UDP_RUN_CORE1=y
|
||||
CONFIG_ARDUINO_UDP_RUN_NO_AFFINITY=
|
||||
CONFIG_ARDUINO_UDP_RUNNING_CORE=1
|
||||
CONFIG_ARDUINO_UDP_TASK_PRIORITY=3
|
||||
CONFIG_DISABLE_HAL_LOCKS=
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user