mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-30 02:37:31 +02:00
mdns: Allow config mDNS task stack size
Signed-off-by: Axel Lin <axel.lin@gmail.com> Merges https://github.com/espressif/esp-idf/pull/5216 * Original commit: espressif/esp-idf@cf7e48c779
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
ac70c9aba8
commit
3319844745
@ -19,6 +19,12 @@ menu "mDNS"
|
|||||||
higher than priorities of system tasks. Compile time warning/error
|
higher than priorities of system tasks. Compile time warning/error
|
||||||
would be emitted if the chosen task priority were too high.
|
would be emitted if the chosen task priority were too high.
|
||||||
|
|
||||||
|
config MDNS_TASK_STACK_SIZE
|
||||||
|
int "mDNS task stack size"
|
||||||
|
default 4096
|
||||||
|
help
|
||||||
|
Allows setting mDNS task stacksize.
|
||||||
|
|
||||||
choice MDNS_TASK_AFFINITY
|
choice MDNS_TASK_AFFINITY
|
||||||
prompt "mDNS task affinity"
|
prompt "mDNS task affinity"
|
||||||
default MDNS_TASK_AFFINITY_CPU0
|
default MDNS_TASK_AFFINITY_CPU0
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
#define MDNS_ANSWER_AAAA_SIZE 16
|
#define MDNS_ANSWER_AAAA_SIZE 16
|
||||||
|
|
||||||
#define MDNS_SERVICE_PORT 5353 // UDP port that the server runs on
|
#define MDNS_SERVICE_PORT 5353 // UDP port that the server runs on
|
||||||
#define MDNS_SERVICE_STACK_DEPTH 4096 // Stack size for the service thread
|
#define MDNS_SERVICE_STACK_DEPTH CONFIG_MDNS_TASK_STACK_SIZE
|
||||||
#define MDNS_TASK_PRIORITY CONFIG_MDNS_TASK_PRIORITY
|
#define MDNS_TASK_PRIORITY CONFIG_MDNS_TASK_PRIORITY
|
||||||
#if (MDNS_TASK_PRIORITY > ESP_TASK_PRIO_MAX)
|
#if (MDNS_TASK_PRIORITY > ESP_TASK_PRIO_MAX)
|
||||||
#error "mDNS task priority is higher than ESP_TASK_PRIO_MAX"
|
#error "mDNS task priority is higher than ESP_TASK_PRIO_MAX"
|
||||||
|
Reference in New Issue
Block a user