@@ -61,15 +61,47 @@ menu "mDNS"
6161 default 0x0 if MDNS_TASK_AFFINITY_CPU0
6262 default 0x1 if MDNS_TASK_AFFINITY_CPU1
6363
64- choice MDNS_TASK_MEMORY_ALLOC_FROM
65- prompt "Select mDNS task create on which type of memory"
66- default MDNS_TASK_CREATE_FROM_INTERNAL
67- config MDNS_TASK_CREATE_FROM_SPIRAM
68- bool "mDNS task creates on the SPIRAM"
69- depends on (SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC)
70- config MDNS_TASK_CREATE_FROM_INTERNAL
71- bool "mDNS task creates on the internal RAM"
72- endchoice
64+ menu "MDNS Memory Configuration"
65+
66+ choice MDNS_TASK_MEMORY_ALLOC_FROM
67+ prompt "Select mDNS task create on which type of memory"
68+ default MDNS_TASK_CREATE_FROM_INTERNAL
69+ config MDNS_TASK_CREATE_FROM_SPIRAM
70+ bool "mDNS task creates on the SPIRAM (READ HELP)"
71+ depends on (SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC)
72+ help
73+ mDNS task creates on the SPIRAM.
74+ This option requires FreeRTOS component to allow creating
75+ tasks on the external memory.
76+ Please read the documentation about FREERTOS_TASK_CREATE_ALLOW_EXT_MEM
77+
78+ config MDNS_TASK_CREATE_FROM_INTERNAL
79+ bool "mDNS task creates on the internal RAM"
80+
81+ endchoice
82+
83+ choice MDNS_MEMORY_ALLOC_FROM
84+ prompt "Select mDNS memory allocation type"
85+ default MDNS_MEMORY_ALLOC_INTERNAL
86+
87+ config MDNS_MEMORY_ALLOC_SPIRAM
88+ bool "Allocate mDNS memory from SPIRAM"
89+ depends on (SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC)
90+
91+ config MDNS_MEMORY_ALLOC_INTERNAL
92+ bool "Allocate mDNS memory from internal RAM"
93+
94+ endchoice
95+
96+ config MDNS_MEMORY_CUSTOM_IMPL
97+ bool "Implement custom memory functions"
98+ default n
99+ help
100+ Enable to implement custom memory functions for mDNS library.
101+ This option is useful when the application wants to use custom
102+ memory allocation functions for mDNS library.
103+
104+ endmenu # MDNS Memory Configuration
73105
74106 config MDNS_SERVICE_ADD_TIMEOUT_MS
75107 int "mDNS adding service timeout (ms)"
0 commit comments