Skip to content

Commit 0e341a6

Browse files
authored
Add sdkconfig option CONFIG_ARDUINO_UDP_TASK_PRIORITY, which sets the task priority for the UDP vtask." (espressif#4131)
1 parent 76cd2e2 commit 0e341a6

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

Kconfig.projbuild

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ config ARDUINO_UDP_RUNNING_CORE
8282
default 1 if ARDUINO_UDP_RUN_CORE1
8383
default -1 if ARDUINO_UDP_RUN_NO_AFFINITY
8484

85+
config CONFIG_ARDUINO_UDP_TASK_PRIORITY
86+
int
87+
default 3
8588

8689
config DISABLE_HAL_LOCKS
8790
bool "Disable mutex locks for HAL"

libraries/AsyncUDP/src/AsyncUDP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static bool _udp_task_start(){
150150
}
151151
}
152152
if(!_udp_task_handle){
153-
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, 3, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
153+
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, CONFIG_ARDUINO_UDP_TASK_PRIORITY, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
154154
if(!_udp_task_handle){
155155
return false;
156156
}

tools/sdk/include/config/sdkconfig.h

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@
364364
#define CONFIG_MB_TIMER_PORT_ENABLED 1
365365
#define CONFIG_DUPLICATE_SCAN_CACHE_SIZE 20
366366
#define CONFIG_ARDUINO_UDP_RUNNING_CORE 1
367+
#define CONFIG_ARDUINO_UDP_TASK_PRIORITY 3
367368
#define CONFIG_MONITOR_BAUD_OTHER_VAL 115200
368369
#define CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF 1
369370
#define CONFIG_ESPTOOLPY_PORT "/dev/cu.usbserial-DO00EAB0"

tools/sdk/sdkconfig

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ CONFIG_ARDUINO_UDP_RUN_CORE0=
3636
CONFIG_ARDUINO_UDP_RUN_CORE1=y
3737
CONFIG_ARDUINO_UDP_RUN_NO_AFFINITY=
3838
CONFIG_ARDUINO_UDP_RUNNING_CORE=1
39+
CONFIG_ARDUINO_UDP_TASK_PRIORITY=3
3940
CONFIG_DISABLE_HAL_LOCKS=
4041

4142
#

0 commit comments

Comments
 (0)