1config BT_BTC_TASK_STACK_SIZE
2    int "Bluetooth event (callback to application) task stack size"
3    depends on BT_BLUEDROID_ENABLED
4    default 3072
5    help
6        This select btc task stack size
7
8choice BT_BLUEDROID_PINNED_TO_CORE_CHOICE
9    prompt "The cpu core which Bluedroid run"
10    depends on BT_BLUEDROID_ENABLED && !FREERTOS_UNICORE
11    help
12        Which the cpu core to run Bluedroid. Can choose core0 and core1.
13        Can not specify no-affinity.
14
15    config BT_BLUEDROID_PINNED_TO_CORE_0
16        bool "Core 0 (PRO CPU)"
17    config BT_BLUEDROID_PINNED_TO_CORE_1
18        bool "Core 1 (APP CPU)"
19        depends on !FREERTOS_UNICORE
20endchoice
21
22config BT_BLUEDROID_PINNED_TO_CORE
23    int
24    depends on BT_BLUEDROID_ENABLED
25    default 0 if BT_BLUEDROID_PINNED_TO_CORE_0
26    default 1 if BT_BLUEDROID_PINNED_TO_CORE_1
27    default 0
28
29config BT_BTU_TASK_STACK_SIZE
30    int "Bluetooth Bluedroid Host Stack task stack size"
31    depends on BT_BLUEDROID_ENABLED
32    default 4096
33    help
34        This select btu task stack size
35
36config BT_BLUEDROID_MEM_DEBUG
37    bool "Bluedroid memory debug"
38    depends on BT_BLUEDROID_ENABLED
39    default n
40    help
41        Bluedroid memory debug
42
43config BT_CLASSIC_ENABLED
44    bool "Classic Bluetooth"
45    depends on BT_BLUEDROID_ENABLED && IDF_TARGET_ESP32
46    default n
47    help
48        For now this option needs "SMP_ENABLE" to be set to yes
49
50config BT_A2DP_ENABLE
51    bool "A2DP"
52    depends on BT_CLASSIC_ENABLED
53    default n
54    help
55        Advanced Audio Distrubution Profile
56
57config BT_SPP_ENABLED
58    bool "SPP"
59    depends on BT_CLASSIC_ENABLED
60    default n
61    help
62        This enables the Serial Port Profile
63
64config BT_HFP_ENABLE
65    bool "Hands Free/Handset Profile"
66    depends on BT_CLASSIC_ENABLED
67    default n
68
69choice BT_HFP_ROLE
70    prompt "Hands-free Profile Role configuration"
71    depends on BT_HFP_ENABLE
72
73    config BT_HFP_CLIENT_ENABLE
74        bool "Hands Free Unit"
75
76    config BT_HFP_AG_ENABLE
77        bool "Audio Gateway"
78endchoice
79
80choice BT_HFP_AUDIO_DATA_PATH
81    prompt "audio(SCO) data path"
82    depends on BT_HFP_ENABLE
83    help
84        SCO data path, i.e. HCI or PCM. This option is set using API
85        "esp_bredr_sco_datapath_set" in Bluetooth host. Default SCO data
86        path can also be set in Bluetooth Controller.
87
88    config BT_HFP_AUDIO_DATA_PATH_PCM
89        bool "PCM"
90    config BT_HFP_AUDIO_DATA_PATH_HCI
91        bool "HCI"
92endchoice
93
94config BT_HFP_WBS_ENABLE
95    bool "Wide Band Speech"
96    depends on BT_HFP_AUDIO_DATA_PATH_HCI
97    default y
98    help
99        This enables Wide Band Speech. Should disable it when SCO data path is PCM.
100        Otherwise there will be no data transmited via GPIOs.
101
102config BT_HID_ENABLED
103    bool "Classic BT HID"
104    depends on BT_CLASSIC_ENABLED
105    default n
106    help
107        This enables the BT HID Host
108
109choice BT_HID_ROLE
110    prompt "Profile Role configuration"
111    depends on BT_HID_ENABLED
112    config BT_HID_HOST_ENABLED
113        bool "Classic BT HID Host"
114        help
115            This enables the BT HID Host
116
117    config BT_HID_DEVICE_ENABLED
118        bool "Classic BT HID Device"
119        help
120            This enables the BT HID Device
121endchoice
122
123config BT_SSP_ENABLED
124    bool "Secure Simple Pairing"
125    depends on BT_CLASSIC_ENABLED
126    default y
127    help
128        This enables the Secure Simple Pairing. If disable this option,
129        Bluedroid will only support Legacy Pairing
130
131config BT_BLE_ENABLED
132    bool "Bluetooth Low Energy"
133    depends on BT_BLUEDROID_ENABLED
134    default y
135    help
136        This enables Bluetooth Low Energy
137
138config BT_GATTS_ENABLE
139    bool "Include GATT server module(GATTS)"
140    depends on BT_BLE_ENABLED
141    default y
142    help
143        This option can be disabled when the app work only on gatt client mode
144
145config BT_GATTS_PPCP_CHAR_GAP
146    bool "Enable Peripheral Preferred Connection Parameters characteristic in GAP service"
147    depends on BT_GATTS_ENABLE
148    default n
149    help
150        This enables "Peripheral Preferred Connection Parameters" characteristic (UUID: 0x2A04) in GAP service that has
151        connection parameters like min/max connection interval, slave latency and supervision timeout multiplier
152
153config BT_BLE_BLUFI_ENABLE
154    bool "Include blufi function"
155    depends on BT_GATTS_ENABLE
156    default n
157    help
158        This option can be close when the app does not require blufi function.
159
160config BT_GATT_MAX_SR_PROFILES
161    int "Max GATT Server Profiles"
162    depends on BT_GATTS_ENABLE && BT_BLUEDROID_ENABLED
163    range 1 32
164    default 8
165    help
166        Maximum GATT Server Profiles Count
167
168
169
170choice BT_GATTS_SEND_SERVICE_CHANGE_MODE
171    prompt "GATTS Service Change Mode"
172    default BT_GATTS_SEND_SERVICE_CHANGE_AUTO
173    depends on BT_GATTS_ENABLE
174    help
175        Service change indication mode for GATT Server.
176
177    config BT_GATTS_SEND_SERVICE_CHANGE_MANUAL
178        bool "GATTS manually send service change indication"
179        help
180            Manually send service change indication through API esp_ble_gatts_send_service_change_indication()
181
182    config BT_GATTS_SEND_SERVICE_CHANGE_AUTO
183        bool "GATTS automatically send service change indication"
184        help
185            Let Bluedroid handle the service change indication internally
186
187endchoice
188
189config BT_GATTS_SEND_SERVICE_CHANGE_MODE
190    int
191    depends on BT_GATTS_ENABLE
192    default 0 if BT_GATTS_SEND_SERVICE_CHANGE_AUTO
193    default 1 if BT_GATTS_SEND_SERVICE_CHANGE_MANUAL
194    default 0
195
196config BT_GATTC_ENABLE
197    bool "Include GATT client module(GATTC)"
198    depends on BT_BLE_ENABLED
199    default y
200    help
201        This option can be close when the app work only on gatt server mode
202
203config BT_GATTC_CACHE_NVS_FLASH
204    bool "Save gattc cache data to nvs flash"
205    depends on BT_GATTC_ENABLE
206    default n
207    help
208        This select can save gattc cache data to nvs flash
209
210config BT_GATTC_CONNECT_RETRY_COUNT
211    int "The number of attempts to reconnect if the connection establishment failed"
212    depends on BT_GATTC_ENABLE
213    range 0 7
214    default 3
215    help
216        The number of attempts to reconnect if the connection establishment failed
217
218config BT_BLE_SMP_ENABLE
219    bool "Include BLE security module(SMP)"
220    depends on BT_BLE_ENABLED
221    default y
222    help
223        This option can be close when the app not used the ble security connect.
224
225config BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE
226    bool "Slave enable connection parameters update during pairing"
227    depends on BT_BLE_SMP_ENABLE
228    default n
229    help
230        In order to reduce the pairing time, slave actively initiates connection parameters
231        update during pairing.
232
233config BT_STACK_NO_LOG
234    bool "Disable BT debug logs (minimize bin size)"
235    depends on BT_BLUEDROID_ENABLED
236    default n
237    help
238        This select can save the rodata code size
239
240menu "BT DEBUG LOG LEVEL"
241    depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
242
243    choice BT_LOG_HCI_TRACE_LEVEL
244        prompt "HCI layer"
245        default BT_LOG_HCI_TRACE_LEVEL_WARNING
246        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
247        help
248            Define BT trace level for HCI layer
249
250        config BT_LOG_HCI_TRACE_LEVEL_NONE
251            bool "NONE"
252        config BT_LOG_HCI_TRACE_LEVEL_ERROR
253            bool "ERROR"
254        config BT_LOG_HCI_TRACE_LEVEL_WARNING
255            bool "WARNING"
256        config BT_LOG_HCI_TRACE_LEVEL_API
257            bool "API"
258        config BT_LOG_HCI_TRACE_LEVEL_EVENT
259            bool "EVENT"
260        config BT_LOG_HCI_TRACE_LEVEL_DEBUG
261            bool "DEBUG"
262        config BT_LOG_HCI_TRACE_LEVEL_VERBOSE
263            bool "VERBOSE"
264    endchoice
265
266    config BT_LOG_HCI_TRACE_LEVEL
267        int
268        depends on BT_BLUEDROID_ENABLED
269        default 0 if BT_LOG_HCI_TRACE_LEVEL_NONE
270        default 1 if BT_LOG_HCI_TRACE_LEVEL_ERROR
271        default 2 if BT_LOG_HCI_TRACE_LEVEL_WARNING
272        default 3 if BT_LOG_HCI_TRACE_LEVEL_API
273        default 4 if BT_LOG_HCI_TRACE_LEVEL_EVENT
274        default 5 if BT_LOG_HCI_TRACE_LEVEL_DEBUG
275        default 6 if BT_LOG_HCI_TRACE_LEVEL_VERBOSE
276        default 2
277
278    choice BT_LOG_BTM_TRACE_LEVEL
279        prompt "BTM layer"
280        default BT_LOG_BTM_TRACE_LEVEL_WARNING
281        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
282        help
283            Define BT trace level for BTM layer
284
285        config BT_LOG_BTM_TRACE_LEVEL_NONE
286            bool "NONE"
287        config BT_LOG_BTM_TRACE_LEVEL_ERROR
288            bool "ERROR"
289        config BT_LOG_BTM_TRACE_LEVEL_WARNING
290            bool "WARNING"
291        config BT_LOG_BTM_TRACE_LEVEL_API
292            bool "API"
293        config BT_LOG_BTM_TRACE_LEVEL_EVENT
294            bool "EVENT"
295        config BT_LOG_BTM_TRACE_LEVEL_DEBUG
296            bool "DEBUG"
297        config BT_LOG_BTM_TRACE_LEVEL_VERBOSE
298            bool "VERBOSE"
299    endchoice
300
301    config BT_LOG_BTM_TRACE_LEVEL
302        int
303        depends on BT_BLUEDROID_ENABLED
304        default 0 if BT_LOG_BTM_TRACE_LEVEL_NONE
305        default 1 if BT_LOG_BTM_TRACE_LEVEL_ERROR
306        default 2 if BT_LOG_BTM_TRACE_LEVEL_WARNING
307        default 3 if BT_LOG_BTM_TRACE_LEVEL_API
308        default 4 if BT_LOG_BTM_TRACE_LEVEL_EVENT
309        default 5 if BT_LOG_BTM_TRACE_LEVEL_DEBUG
310        default 6 if BT_LOG_BTM_TRACE_LEVEL_VERBOSE
311        default 2
312
313    choice BT_LOG_L2CAP_TRACE_LEVEL
314        prompt "L2CAP layer"
315        default BT_LOG_L2CAP_TRACE_LEVEL_WARNING
316        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
317        help
318            Define BT trace level for L2CAP layer
319
320        config BT_LOG_L2CAP_TRACE_LEVEL_NONE
321            bool "NONE"
322        config BT_LOG_L2CAP_TRACE_LEVEL_ERROR
323            bool "ERROR"
324        config BT_LOG_L2CAP_TRACE_LEVEL_WARNING
325            bool "WARNING"
326        config BT_LOG_L2CAP_TRACE_LEVEL_API
327            bool "API"
328        config BT_LOG_L2CAP_TRACE_LEVEL_EVENT
329            bool "EVENT"
330        config BT_LOG_L2CAP_TRACE_LEVEL_DEBUG
331            bool "DEBUG"
332        config BT_LOG_L2CAP_TRACE_LEVEL_VERBOSE
333            bool "VERBOSE"
334    endchoice
335
336    config BT_LOG_L2CAP_TRACE_LEVEL
337        int
338        depends on BT_BLUEDROID_ENABLED
339        default 0 if BT_LOG_L2CAP_TRACE_LEVEL_NONE
340        default 1 if BT_LOG_L2CAP_TRACE_LEVEL_ERROR
341        default 2 if BT_LOG_L2CAP_TRACE_LEVEL_WARNING
342        default 3 if BT_LOG_L2CAP_TRACE_LEVEL_API
343        default 4 if BT_LOG_L2CAP_TRACE_LEVEL_EVENT
344        default 5 if BT_LOG_L2CAP_TRACE_LEVEL_DEBUG
345        default 6 if BT_LOG_L2CAP_TRACE_LEVEL_VERBOSE
346        default 2
347
348    choice BT_LOG_RFCOMM_TRACE_LEVEL
349        prompt "RFCOMM layer"
350        default BT_LOG_RFCOMM_TRACE_LEVEL_WARNING
351        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
352        help
353            Define BT trace level for RFCOMM layer
354
355        config BT_LOG_RFCOMM_TRACE_LEVEL_NONE
356            bool "NONE"
357        config BT_LOG_RFCOMM_TRACE_LEVEL_ERROR
358            bool "ERROR"
359        config BT_LOG_RFCOMM_TRACE_LEVEL_WARNING
360            bool "WARNING"
361        config BT_LOG_RFCOMM_TRACE_LEVEL_API
362            bool "API"
363        config BT_LOG_RFCOMM_TRACE_LEVEL_EVENT
364            bool "EVENT"
365        config BT_LOG_RFCOMM_TRACE_LEVEL_DEBUG
366            bool "DEBUG"
367        config BT_LOG_RFCOMM_TRACE_LEVEL_VERBOSE
368            bool "VERBOSE"
369    endchoice
370
371    config BT_LOG_RFCOMM_TRACE_LEVEL
372        int
373        depends on BT_BLUEDROID_ENABLED
374        default 0 if BT_LOG_RFCOMM_TRACE_LEVEL_NONE
375        default 1 if BT_LOG_RFCOMM_TRACE_LEVEL_ERROR
376        default 2 if BT_LOG_RFCOMM_TRACE_LEVEL_WARNING
377        default 3 if BT_LOG_RFCOMM_TRACE_LEVEL_API
378        default 4 if BT_LOG_RFCOMM_TRACE_LEVEL_EVENT
379        default 5 if BT_LOG_RFCOMM_TRACE_LEVEL_DEBUG
380        default 6 if BT_LOG_RFCOMM_TRACE_LEVEL_VERBOSE
381        default 2
382
383    choice BT_LOG_SDP_TRACE_LEVEL
384        prompt "SDP layer"
385        default BT_LOG_SDP_TRACE_LEVEL_WARNING
386        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
387        help
388            Define BT trace level for SDP layer
389
390        config BT_LOG_SDP_TRACE_LEVEL_NONE
391            bool "NONE"
392        config BT_LOG_SDP_TRACE_LEVEL_ERROR
393            bool "ERROR"
394        config BT_LOG_SDP_TRACE_LEVEL_WARNING
395            bool "WARNING"
396        config BT_LOG_SDP_TRACE_LEVEL_API
397            bool "API"
398        config BT_LOG_SDP_TRACE_LEVEL_EVENT
399            bool "EVENT"
400        config BT_LOG_SDP_TRACE_LEVEL_DEBUG
401            bool "DEBUG"
402        config BT_LOG_SDP_TRACE_LEVEL_VERBOSE
403            bool "VERBOSE"
404    endchoice
405
406    config BT_LOG_SDP_TRACE_LEVEL
407        int
408        depends on BT_BLUEDROID_ENABLED
409        default 0 if BT_LOG_SDP_TRACE_LEVEL_NONE
410        default 1 if BT_LOG_SDP_TRACE_LEVEL_ERROR
411        default 2 if BT_LOG_SDP_TRACE_LEVEL_WARNING
412        default 3 if BT_LOG_SDP_TRACE_LEVEL_API
413        default 4 if BT_LOG_SDP_TRACE_LEVEL_EVENT
414        default 5 if BT_LOG_SDP_TRACE_LEVEL_DEBUG
415        default 6 if BT_LOG_SDP_TRACE_LEVEL_VERBOSE
416        default 2
417
418    choice BT_LOG_GAP_TRACE_LEVEL
419        prompt "GAP layer"
420        default BT_LOG_GAP_TRACE_LEVEL_WARNING
421        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
422        help
423            Define BT trace level for GAP layer
424
425        config BT_LOG_GAP_TRACE_LEVEL_NONE
426            bool "NONE"
427        config BT_LOG_GAP_TRACE_LEVEL_ERROR
428            bool "ERROR"
429        config BT_LOG_GAP_TRACE_LEVEL_WARNING
430            bool "WARNING"
431        config BT_LOG_GAP_TRACE_LEVEL_API
432            bool "API"
433        config BT_LOG_GAP_TRACE_LEVEL_EVENT
434            bool "EVENT"
435        config BT_LOG_GAP_TRACE_LEVEL_DEBUG
436            bool "DEBUG"
437        config BT_LOG_GAP_TRACE_LEVEL_VERBOSE
438            bool "VERBOSE"
439    endchoice
440
441    config BT_LOG_GAP_TRACE_LEVEL
442        int
443        depends on BT_BLUEDROID_ENABLED
444        default 0 if BT_LOG_GAP_TRACE_LEVEL_NONE
445        default 1 if BT_LOG_GAP_TRACE_LEVEL_ERROR
446        default 2 if BT_LOG_GAP_TRACE_LEVEL_WARNING
447        default 3 if BT_LOG_GAP_TRACE_LEVEL_API
448        default 4 if BT_LOG_GAP_TRACE_LEVEL_EVENT
449        default 5 if BT_LOG_GAP_TRACE_LEVEL_DEBUG
450        default 6 if BT_LOG_GAP_TRACE_LEVEL_VERBOSE
451        default 2
452
453    choice BT_LOG_BNEP_TRACE_LEVEL
454        prompt "BNEP layer"
455        default BT_LOG_BNEP_TRACE_LEVEL_WARNING
456        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
457        help
458            Define BT trace level for BNEP layer
459
460        config BT_LOG_BNEP_TRACE_LEVEL_NONE
461            bool "NONE"
462        config BT_LOG_BNEP_TRACE_LEVEL_ERROR
463            bool "ERROR"
464        config BT_LOG_BNEP_TRACE_LEVEL_WARNING
465            bool "WARNING"
466        config BT_LOG_BNEP_TRACE_LEVEL_API
467            bool "API"
468        config BT_LOG_BNEP_TRACE_LEVEL_EVENT
469            bool "EVENT"
470        config BT_LOG_BNEP_TRACE_LEVEL_DEBUG
471            bool "DEBUG"
472        config BT_LOG_BNEP_TRACE_LEVEL_VERBOSE
473            bool "VERBOSE"
474    endchoice
475
476    config BT_LOG_BNEP_TRACE_LEVEL
477        int
478        depends on BT_BLUEDROID_ENABLED
479        default 0 if BT_LOG_BNEP_TRACE_LEVEL_NONE
480        default 1 if BT_LOG_BNEP_TRACE_LEVEL_ERROR
481        default 2 if BT_LOG_BNEP_TRACE_LEVEL_WARNING
482        default 3 if BT_LOG_BNEP_TRACE_LEVEL_API
483        default 4 if BT_LOG_BNEP_TRACE_LEVEL_EVENT
484        default 5 if BT_LOG_BNEP_TRACE_LEVEL_DEBUG
485        default 6 if BT_LOG_BNEP_TRACE_LEVEL_VERBOSE
486        default 2
487
488    choice BT_LOG_PAN_TRACE_LEVEL
489        prompt "PAN layer"
490        default BT_LOG_PAN_TRACE_LEVEL_WARNING
491        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
492        help
493            Define BT trace level for PAN layer
494
495        config BT_LOG_PAN_TRACE_LEVEL_NONE
496            bool "NONE"
497        config BT_LOG_PAN_TRACE_LEVEL_ERROR
498            bool "ERROR"
499        config BT_LOG_PAN_TRACE_LEVEL_WARNING
500            bool "WARNING"
501        config BT_LOG_PAN_TRACE_LEVEL_API
502            bool "API"
503        config BT_LOG_PAN_TRACE_LEVEL_EVENT
504            bool "EVENT"
505        config BT_LOG_PAN_TRACE_LEVEL_DEBUG
506            bool "DEBUG"
507        config BT_LOG_PAN_TRACE_LEVEL_VERBOSE
508            bool "VERBOSE"
509    endchoice
510
511    config BT_LOG_PAN_TRACE_LEVEL
512        int
513        depends on BT_BLUEDROID_ENABLED
514        default 0 if BT_LOG_PAN_TRACE_LEVEL_NONE
515        default 1 if BT_LOG_PAN_TRACE_LEVEL_ERROR
516        default 2 if BT_LOG_PAN_TRACE_LEVEL_WARNING
517        default 3 if BT_LOG_PAN_TRACE_LEVEL_API
518        default 4 if BT_LOG_PAN_TRACE_LEVEL_EVENT
519        default 5 if BT_LOG_PAN_TRACE_LEVEL_DEBUG
520        default 6 if BT_LOG_PAN_TRACE_LEVEL_VERBOSE
521        default 2
522
523    choice BT_LOG_A2D_TRACE_LEVEL
524        prompt "A2D layer"
525        default BT_LOG_A2D_TRACE_LEVEL_WARNING
526        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
527        help
528            Define BT trace level for A2D layer
529
530        config BT_LOG_A2D_TRACE_LEVEL_NONE
531            bool "NONE"
532        config BT_LOG_A2D_TRACE_LEVEL_ERROR
533            bool "ERROR"
534        config BT_LOG_A2D_TRACE_LEVEL_WARNING
535            bool "WARNING"
536        config BT_LOG_A2D_TRACE_LEVEL_API
537            bool "API"
538        config BT_LOG_A2D_TRACE_LEVEL_EVENT
539            bool "EVENT"
540        config BT_LOG_A2D_TRACE_LEVEL_DEBUG
541            bool "DEBUG"
542        config BT_LOG_A2D_TRACE_LEVEL_VERBOSE
543            bool "VERBOSE"
544    endchoice
545
546    config BT_LOG_A2D_TRACE_LEVEL
547        int
548        depends on BT_BLUEDROID_ENABLED
549        default 0 if BT_LOG_A2D_TRACE_LEVEL_NONE
550        default 1 if BT_LOG_A2D_TRACE_LEVEL_ERROR
551        default 2 if BT_LOG_A2D_TRACE_LEVEL_WARNING
552        default 3 if BT_LOG_A2D_TRACE_LEVEL_API
553        default 4 if BT_LOG_A2D_TRACE_LEVEL_EVENT
554        default 5 if BT_LOG_A2D_TRACE_LEVEL_DEBUG
555        default 6 if BT_LOG_A2D_TRACE_LEVEL_VERBOSE
556        default 2
557
558    choice BT_LOG_AVDT_TRACE_LEVEL
559        prompt "AVDT layer"
560        default BT_LOG_AVDT_TRACE_LEVEL_WARNING
561        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
562        help
563            Define BT trace level for AVDT layer
564
565        config BT_LOG_AVDT_TRACE_LEVEL_NONE
566            bool "NONE"
567        config BT_LOG_AVDT_TRACE_LEVEL_ERROR
568            bool "ERROR"
569        config BT_LOG_AVDT_TRACE_LEVEL_WARNING
570            bool "WARNING"
571        config BT_LOG_AVDT_TRACE_LEVEL_API
572            bool "API"
573        config BT_LOG_AVDT_TRACE_LEVEL_EVENT
574            bool "EVENT"
575        config BT_LOG_AVDT_TRACE_LEVEL_DEBUG
576            bool "DEBUG"
577        config BT_LOG_AVDT_TRACE_LEVEL_VERBOSE
578            bool "VERBOSE"
579    endchoice
580
581    config BT_LOG_AVDT_TRACE_LEVEL
582        int
583        depends on BT_BLUEDROID_ENABLED
584        default 0 if BT_LOG_AVDT_TRACE_LEVEL_NONE
585        default 1 if BT_LOG_AVDT_TRACE_LEVEL_ERROR
586        default 2 if BT_LOG_AVDT_TRACE_LEVEL_WARNING
587        default 3 if BT_LOG_AVDT_TRACE_LEVEL_API
588        default 4 if BT_LOG_AVDT_TRACE_LEVEL_EVENT
589        default 5 if BT_LOG_AVDT_TRACE_LEVEL_DEBUG
590        default 6 if BT_LOG_AVDT_TRACE_LEVEL_VERBOSE
591        default 2
592
593    choice BT_LOG_AVCT_TRACE_LEVEL
594        prompt "AVCT layer"
595        default BT_LOG_AVCT_TRACE_LEVEL_WARNING
596        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
597        help
598            Define BT trace level for AVCT layer
599
600        config BT_LOG_AVCT_TRACE_LEVEL_NONE
601            bool "NONE"
602        config BT_LOG_AVCT_TRACE_LEVEL_ERROR
603            bool "ERROR"
604        config BT_LOG_AVCT_TRACE_LEVEL_WARNING
605            bool "WARNING"
606        config BT_LOG_AVCT_TRACE_LEVEL_API
607            bool "API"
608        config BT_LOG_AVCT_TRACE_LEVEL_EVENT
609            bool "EVENT"
610        config BT_LOG_AVCT_TRACE_LEVEL_DEBUG
611            bool "DEBUG"
612        config BT_LOG_AVCT_TRACE_LEVEL_VERBOSE
613            bool "VERBOSE"
614    endchoice
615
616    config BT_LOG_AVCT_TRACE_LEVEL
617        int
618        depends on BT_BLUEDROID_ENABLED
619        default 0 if BT_LOG_AVCT_TRACE_LEVEL_NONE
620        default 1 if BT_LOG_AVCT_TRACE_LEVEL_ERROR
621        default 2 if BT_LOG_AVCT_TRACE_LEVEL_WARNING
622        default 3 if BT_LOG_AVCT_TRACE_LEVEL_API
623        default 4 if BT_LOG_AVCT_TRACE_LEVEL_EVENT
624        default 5 if BT_LOG_AVCT_TRACE_LEVEL_DEBUG
625        default 6 if BT_LOG_AVCT_TRACE_LEVEL_VERBOSE
626        default 2
627
628    choice BT_LOG_AVRC_TRACE_LEVEL
629        prompt "AVRC layer"
630        default BT_LOG_AVRC_TRACE_LEVEL_WARNING
631        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
632        help
633            Define BT trace level for AVRC layer
634
635        config BT_LOG_AVRC_TRACE_LEVEL_NONE
636            bool "NONE"
637        config BT_LOG_AVRC_TRACE_LEVEL_ERROR
638            bool "ERROR"
639        config BT_LOG_AVRC_TRACE_LEVEL_WARNING
640            bool "WARNING"
641        config BT_LOG_AVRC_TRACE_LEVEL_API
642            bool "API"
643        config BT_LOG_AVRC_TRACE_LEVEL_EVENT
644            bool "EVENT"
645        config BT_LOG_AVRC_TRACE_LEVEL_DEBUG
646            bool "DEBUG"
647        config BT_LOG_AVRC_TRACE_LEVEL_VERBOSE
648            bool "VERBOSE"
649    endchoice
650
651    config BT_LOG_AVRC_TRACE_LEVEL
652        int
653        depends on BT_BLUEDROID_ENABLED
654        default 0 if BT_LOG_AVRC_TRACE_LEVEL_NONE
655        default 1 if BT_LOG_AVRC_TRACE_LEVEL_ERROR
656        default 2 if BT_LOG_AVRC_TRACE_LEVEL_WARNING
657        default 3 if BT_LOG_AVRC_TRACE_LEVEL_API
658        default 4 if BT_LOG_AVRC_TRACE_LEVEL_EVENT
659        default 5 if BT_LOG_AVRC_TRACE_LEVEL_DEBUG
660        default 6 if BT_LOG_AVRC_TRACE_LEVEL_VERBOSE
661        default 2
662
663    choice BT_LOG_MCA_TRACE_LEVEL
664        prompt "MCA layer"
665        default BT_LOG_MCA_TRACE_LEVEL_WARNING
666        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
667        help
668            Define BT trace level for MCA layer
669
670        config BT_LOG_MCA_TRACE_LEVEL_NONE
671            bool "NONE"
672        config BT_LOG_MCA_TRACE_LEVEL_ERROR
673            bool "ERROR"
674        config BT_LOG_MCA_TRACE_LEVEL_WARNING
675            bool "WARNING"
676        config BT_LOG_MCA_TRACE_LEVEL_API
677            bool "API"
678        config BT_LOG_MCA_TRACE_LEVEL_EVENT
679            bool "EVENT"
680        config BT_LOG_MCA_TRACE_LEVEL_DEBUG
681            bool "DEBUG"
682        config BT_LOG_MCA_TRACE_LEVEL_VERBOSE
683            bool "VERBOSE"
684    endchoice
685
686    config BT_LOG_MCA_TRACE_LEVEL
687        int
688        depends on BT_BLUEDROID_ENABLED
689        default 0 if BT_LOG_MCA_TRACE_LEVEL_NONE
690        default 1 if BT_LOG_MCA_TRACE_LEVEL_ERROR
691        default 2 if BT_LOG_MCA_TRACE_LEVEL_WARNING
692        default 3 if BT_LOG_MCA_TRACE_LEVEL_API
693        default 4 if BT_LOG_MCA_TRACE_LEVEL_EVENT
694        default 5 if BT_LOG_MCA_TRACE_LEVEL_DEBUG
695        default 6 if BT_LOG_MCA_TRACE_LEVEL_VERBOSE
696        default 2
697
698    choice BT_LOG_HID_TRACE_LEVEL
699        prompt "HID layer"
700        default BT_LOG_HID_TRACE_LEVEL_WARNING
701        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
702        help
703            Define BT trace level for HID layer
704
705        config BT_LOG_HID_TRACE_LEVEL_NONE
706            bool "NONE"
707        config BT_LOG_HID_TRACE_LEVEL_ERROR
708            bool "ERROR"
709        config BT_LOG_HID_TRACE_LEVEL_WARNING
710            bool "WARNING"
711        config BT_LOG_HID_TRACE_LEVEL_API
712            bool "API"
713        config BT_LOG_HID_TRACE_LEVEL_EVENT
714            bool "EVENT"
715        config BT_LOG_HID_TRACE_LEVEL_DEBUG
716            bool "DEBUG"
717        config BT_LOG_HID_TRACE_LEVEL_VERBOSE
718            bool "VERBOSE"
719    endchoice
720
721    config BT_LOG_HID_TRACE_LEVEL
722        int
723        depends on BT_BLUEDROID_ENABLED
724        default 0 if BT_LOG_HID_TRACE_LEVEL_NONE
725        default 1 if BT_LOG_HID_TRACE_LEVEL_ERROR
726        default 2 if BT_LOG_HID_TRACE_LEVEL_WARNING
727        default 3 if BT_LOG_HID_TRACE_LEVEL_API
728        default 4 if BT_LOG_HID_TRACE_LEVEL_EVENT
729        default 5 if BT_LOG_HID_TRACE_LEVEL_DEBUG
730        default 6 if BT_LOG_HID_TRACE_LEVEL_VERBOSE
731        default 2
732
733    choice BT_LOG_APPL_TRACE_LEVEL
734        prompt "APPL layer"
735        default BT_LOG_APPL_TRACE_LEVEL_WARNING
736        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
737        help
738            Define BT trace level for APPL layer
739
740        config BT_LOG_APPL_TRACE_LEVEL_NONE
741            bool "NONE"
742        config BT_LOG_APPL_TRACE_LEVEL_ERROR
743            bool "ERROR"
744        config BT_LOG_APPL_TRACE_LEVEL_WARNING
745            bool "WARNING"
746        config BT_LOG_APPL_TRACE_LEVEL_API
747            bool "API"
748        config BT_LOG_APPL_TRACE_LEVEL_EVENT
749            bool "EVENT"
750        config BT_LOG_APPL_TRACE_LEVEL_DEBUG
751            bool "DEBUG"
752        config BT_LOG_APPL_TRACE_LEVEL_VERBOSE
753            bool "VERBOSE"
754    endchoice
755
756    config BT_LOG_APPL_TRACE_LEVEL
757        int
758        depends on BT_BLUEDROID_ENABLED
759        default 0 if BT_LOG_APPL_TRACE_LEVEL_NONE
760        default 1 if BT_LOG_APPL_TRACE_LEVEL_ERROR
761        default 2 if BT_LOG_APPL_TRACE_LEVEL_WARNING
762        default 3 if BT_LOG_APPL_TRACE_LEVEL_API
763        default 4 if BT_LOG_APPL_TRACE_LEVEL_EVENT
764        default 5 if BT_LOG_APPL_TRACE_LEVEL_DEBUG
765        default 6 if BT_LOG_APPL_TRACE_LEVEL_VERBOSE
766        default 2
767
768    choice BT_LOG_GATT_TRACE_LEVEL
769        prompt "GATT layer"
770        default BT_LOG_GATT_TRACE_LEVEL_WARNING
771        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
772        help
773            Define BT trace level for GATT layer
774
775        config BT_LOG_GATT_TRACE_LEVEL_NONE
776            bool "NONE"
777        config BT_LOG_GATT_TRACE_LEVEL_ERROR
778            bool "ERROR"
779        config BT_LOG_GATT_TRACE_LEVEL_WARNING
780            bool "WARNING"
781        config BT_LOG_GATT_TRACE_LEVEL_API
782            bool "API"
783        config BT_LOG_GATT_TRACE_LEVEL_EVENT
784            bool "EVENT"
785        config BT_LOG_GATT_TRACE_LEVEL_DEBUG
786            bool "DEBUG"
787        config BT_LOG_GATT_TRACE_LEVEL_VERBOSE
788            bool "VERBOSE"
789    endchoice
790
791    config BT_LOG_GATT_TRACE_LEVEL
792        int
793        depends on BT_BLUEDROID_ENABLED
794        default 0 if BT_LOG_GATT_TRACE_LEVEL_NONE
795        default 1 if BT_LOG_GATT_TRACE_LEVEL_ERROR
796        default 2 if BT_LOG_GATT_TRACE_LEVEL_WARNING
797        default 3 if BT_LOG_GATT_TRACE_LEVEL_API
798        default 4 if BT_LOG_GATT_TRACE_LEVEL_EVENT
799        default 5 if BT_LOG_GATT_TRACE_LEVEL_DEBUG
800        default 6 if BT_LOG_GATT_TRACE_LEVEL_VERBOSE
801        default 2
802
803    choice BT_LOG_SMP_TRACE_LEVEL
804        prompt "SMP layer"
805        default BT_LOG_SMP_TRACE_LEVEL_WARNING
806        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
807        help
808            Define BT trace level for SMP layer
809
810        config BT_LOG_SMP_TRACE_LEVEL_NONE
811            bool "NONE"
812        config BT_LOG_SMP_TRACE_LEVEL_ERROR
813            bool "ERROR"
814        config BT_LOG_SMP_TRACE_LEVEL_WARNING
815            bool "WARNING"
816        config BT_LOG_SMP_TRACE_LEVEL_API
817            bool "API"
818        config BT_LOG_SMP_TRACE_LEVEL_EVENT
819            bool "EVENT"
820        config BT_LOG_SMP_TRACE_LEVEL_DEBUG
821            bool "DEBUG"
822        config BT_LOG_SMP_TRACE_LEVEL_VERBOSE
823            bool "VERBOSE"
824    endchoice
825
826    config BT_LOG_SMP_TRACE_LEVEL
827        int
828        depends on BT_BLUEDROID_ENABLED
829        default 0 if BT_LOG_SMP_TRACE_LEVEL_NONE
830        default 1 if BT_LOG_SMP_TRACE_LEVEL_ERROR
831        default 2 if BT_LOG_SMP_TRACE_LEVEL_WARNING
832        default 3 if BT_LOG_SMP_TRACE_LEVEL_API
833        default 4 if BT_LOG_SMP_TRACE_LEVEL_EVENT
834        default 5 if BT_LOG_SMP_TRACE_LEVEL_DEBUG
835        default 6 if BT_LOG_SMP_TRACE_LEVEL_VERBOSE
836        default 2
837
838    choice BT_LOG_BTIF_TRACE_LEVEL
839        prompt "BTIF layer"
840        default BT_LOG_BTIF_TRACE_LEVEL_WARNING
841        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
842        help
843            Define BT trace level for BTIF layer
844
845        config BT_LOG_BTIF_TRACE_LEVEL_NONE
846            bool "NONE"
847        config BT_LOG_BTIF_TRACE_LEVEL_ERROR
848            bool "ERROR"
849        config BT_LOG_BTIF_TRACE_LEVEL_WARNING
850            bool "WARNING"
851        config BT_LOG_BTIF_TRACE_LEVEL_API
852            bool "API"
853        config BT_LOG_BTIF_TRACE_LEVEL_EVENT
854            bool "EVENT"
855        config BT_LOG_BTIF_TRACE_LEVEL_DEBUG
856            bool "DEBUG"
857        config BT_LOG_BTIF_TRACE_LEVEL_VERBOSE
858            bool "VERBOSE"
859    endchoice
860
861    config BT_LOG_BTIF_TRACE_LEVEL
862        int
863        depends on BT_BLUEDROID_ENABLED
864        default 0 if BT_LOG_BTIF_TRACE_LEVEL_NONE
865        default 1 if BT_LOG_BTIF_TRACE_LEVEL_ERROR
866        default 2 if BT_LOG_BTIF_TRACE_LEVEL_WARNING
867        default 3 if BT_LOG_BTIF_TRACE_LEVEL_API
868        default 4 if BT_LOG_BTIF_TRACE_LEVEL_EVENT
869        default 5 if BT_LOG_BTIF_TRACE_LEVEL_DEBUG
870        default 6 if BT_LOG_BTIF_TRACE_LEVEL_VERBOSE
871        default 2
872
873    choice BT_LOG_BTC_TRACE_LEVEL
874        prompt "BTC layer"
875        default BT_LOG_BTC_TRACE_LEVEL_WARNING
876        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
877        help
878            Define BT trace level for BTC layer
879
880        config BT_LOG_BTC_TRACE_LEVEL_NONE
881            bool "NONE"
882        config BT_LOG_BTC_TRACE_LEVEL_ERROR
883            bool "ERROR"
884        config BT_LOG_BTC_TRACE_LEVEL_WARNING
885            bool "WARNING"
886        config BT_LOG_BTC_TRACE_LEVEL_API
887            bool "API"
888        config BT_LOG_BTC_TRACE_LEVEL_EVENT
889            bool "EVENT"
890        config BT_LOG_BTC_TRACE_LEVEL_DEBUG
891            bool "DEBUG"
892        config BT_LOG_BTC_TRACE_LEVEL_VERBOSE
893            bool "VERBOSE"
894    endchoice
895
896    config BT_LOG_BTC_TRACE_LEVEL
897        int
898        depends on BT_BLUEDROID_ENABLED
899        default 0 if BT_LOG_BTC_TRACE_LEVEL_NONE
900        default 1 if BT_LOG_BTC_TRACE_LEVEL_ERROR
901        default 2 if BT_LOG_BTC_TRACE_LEVEL_WARNING
902        default 3 if BT_LOG_BTC_TRACE_LEVEL_API
903        default 4 if BT_LOG_BTC_TRACE_LEVEL_EVENT
904        default 5 if BT_LOG_BTC_TRACE_LEVEL_DEBUG
905        default 6 if BT_LOG_BTC_TRACE_LEVEL_VERBOSE
906        default 2
907
908    choice BT_LOG_OSI_TRACE_LEVEL
909        prompt "OSI layer"
910        default BT_LOG_OSI_TRACE_LEVEL_WARNING
911        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
912        help
913            Define BT trace level for OSI layer
914
915        config BT_LOG_OSI_TRACE_LEVEL_NONE
916            bool "NONE"
917        config BT_LOG_OSI_TRACE_LEVEL_ERROR
918            bool "ERROR"
919        config BT_LOG_OSI_TRACE_LEVEL_WARNING
920            bool "WARNING"
921        config BT_LOG_OSI_TRACE_LEVEL_API
922            bool "API"
923        config BT_LOG_OSI_TRACE_LEVEL_EVENT
924            bool "EVENT"
925        config BT_LOG_OSI_TRACE_LEVEL_DEBUG
926            bool "DEBUG"
927        config BT_LOG_OSI_TRACE_LEVEL_VERBOSE
928            bool "VERBOSE"
929    endchoice
930
931    config BT_LOG_OSI_TRACE_LEVEL
932        int
933        depends on BT_BLUEDROID_ENABLED
934        default 0 if BT_LOG_OSI_TRACE_LEVEL_NONE
935        default 1 if BT_LOG_OSI_TRACE_LEVEL_ERROR
936        default 2 if BT_LOG_OSI_TRACE_LEVEL_WARNING
937        default 3 if BT_LOG_OSI_TRACE_LEVEL_API
938        default 4 if BT_LOG_OSI_TRACE_LEVEL_EVENT
939        default 5 if BT_LOG_OSI_TRACE_LEVEL_DEBUG
940        default 6 if BT_LOG_OSI_TRACE_LEVEL_VERBOSE
941        default 2
942
943    choice BT_LOG_BLUFI_TRACE_LEVEL
944        prompt "BLUFI layer"
945        default BT_LOG_BLUFI_TRACE_LEVEL_WARNING
946        depends on BT_BLUEDROID_ENABLED && !BT_STACK_NO_LOG
947        help
948            Define BT trace level for BLUFI layer
949
950        config BT_LOG_BLUFI_TRACE_LEVEL_NONE
951            bool "NONE"
952        config BT_LOG_BLUFI_TRACE_LEVEL_ERROR
953            bool "ERROR"
954        config BT_LOG_BLUFI_TRACE_LEVEL_WARNING
955            bool "WARNING"
956        config BT_LOG_BLUFI_TRACE_LEVEL_API
957            bool "API"
958        config BT_LOG_BLUFI_TRACE_LEVEL_EVENT
959            bool "EVENT"
960        config BT_LOG_BLUFI_TRACE_LEVEL_DEBUG
961            bool "DEBUG"
962        config BT_LOG_BLUFI_TRACE_LEVEL_VERBOSE
963            bool "VERBOSE"
964    endchoice
965
966    config BT_LOG_BLUFI_TRACE_LEVEL
967        int
968        depends on BT_BLUEDROID_ENABLED
969        default 0 if BT_LOG_BLUFI_TRACE_LEVEL_NONE
970        default 1 if BT_LOG_BLUFI_TRACE_LEVEL_ERROR
971        default 2 if BT_LOG_BLUFI_TRACE_LEVEL_WARNING
972        default 3 if BT_LOG_BLUFI_TRACE_LEVEL_API
973        default 4 if BT_LOG_BLUFI_TRACE_LEVEL_EVENT
974        default 5 if BT_LOG_BLUFI_TRACE_LEVEL_DEBUG
975        default 6 if BT_LOG_BLUFI_TRACE_LEVEL_VERBOSE
976        default 2
977
978endmenu #BT DEBUG LOG LEVEL
979
980config BT_ACL_CONNECTIONS
981    int "BT/BLE MAX ACL CONNECTIONS(1~7)"
982    depends on BT_BLUEDROID_ENABLED
983    range 1 7
984    default 4
985    help
986        Maximum BT/BLE connection count
987
988config BT_MULTI_CONNECTION_ENBALE
989    bool "Enable BLE multi-conections"
990    depends on BT_BLUEDROID_ENABLED
991    default y
992    help
993        Enable this option if there are multiple connections
994
995config BT_ALLOCATION_FROM_SPIRAM_FIRST
996    bool "BT/BLE will first malloc the memory from the PSRAM"
997    depends on BT_BLUEDROID_ENABLED
998    default n
999    help
1000        This select can save the internal RAM if there have the PSRAM
1001
1002config BT_BLE_DYNAMIC_ENV_MEMORY
1003    bool "Use dynamic memory allocation in BT/BLE stack"
1004    depends on BT_BLUEDROID_ENABLED
1005    default n
1006    help
1007        This select can make the allocation of memory will become more flexible
1008
1009config BT_BLE_HOST_QUEUE_CONG_CHECK
1010    bool "BLE queue congestion check"
1011    depends on BT_BLUEDROID_ENABLED
1012    default n
1013    help
1014        When scanning and scan duplicate is not enabled, if there are a lot of adv packets around
1015        or application layer handling adv packets is slow, it will cause the controller memory
1016        to run out. if enabled, adv packets will be lost when host queue is congested.
1017
1018config BT_SMP_ENABLE
1019    bool
1020    depends on BT_BLUEDROID_ENABLED
1021    default BT_CLASSIC_ENABLED || BT_BLE_SMP_ENABLE
1022
1023config BT_BLE_ACT_SCAN_REP_ADV_SCAN
1024    bool "Report adv data and scan response individually when BLE active scan"
1025    depends on BT_BLUEDROID_ENABLED && (BTDM_CTRL_MODE_BTDM || BTDM_CTRL_MODE_BLE_ONLY)
1026    default n
1027    help
1028        Originally, when doing BLE active scan, Bluedroid will not report adv to application layer
1029        until receive scan response. This option is used to disable the behavior. When enable this option,
1030        Bluedroid will report adv data or scan response to application layer immediately.
1031
1032        # Memory reserved at start of DRAM for Bluetooth stack
1033
1034config BT_BLE_ESTAB_LINK_CONN_TOUT
1035    int "Timeout of BLE connection establishment"
1036    depends on BT_BLUEDROID_ENABLED
1037    range 1 60
1038    default 30
1039    help
1040        Bluetooth Connection establishment maximum time, if connection time exceeds this value, the connection
1041        establishment fails, ESP_GATTC_OPEN_EVT or ESP_GATTS_OPEN_EVT is triggered.
1042
1043config BT_BLE_RPA_SUPPORTED
1044    bool "Update RPA to Controller"
1045    depends on BT_BLUEDROID_ENABLED
1046    default y if (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)
1047    default n if IDF_TARGET_ESP32
1048    help
1049        This enables controller RPA list function.
1050        For ESP32, ESP32 only support network privacy mode. If this option is enabled, ESP32 will only accept
1051        advertising packets from peer devices that contain private address, HW will not receive the advertising
1052        packets contain identity address after IRK changed. If this option is disabled, address resolution will
1053        be performed in the host, so the functions that require controller to resolve address in the white list
1054        cannot be used. This option is disabled by default on ESP32, please enable or disable this option according
1055        to your own needs.
1056
1057        For ESP32C3 and esp32s3, devices support network privacy mode and device privacy mode, users can switch the
1058        two modes according to their own needs. So this option is enabled by default.
1059
1060config BT_BLE_50_FEATURES_SUPPORTED
1061    bool "Enable BLE 5.0 features"
1062    depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
1063    default y
1064    help
1065        This enables BLE 5.0 features, this option only support esp32c3/esp32s3 chip
1066
1067config BT_BLE_42_FEATURES_SUPPORTED
1068    bool "Enable BLE 4.2 features"
1069    depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
1070    default n
1071    help
1072        This enables BLE 4.2 features.
1073