7 Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
9 choice BTDM_CONTROLLER_PINNED_TO_CORE_CHOICE
10 prompt "The cpu core which bluetooth controller run"
11 depends on BT_ENABLED && !FREERTOS_UNICORE
13 Specify the cpu core to run bluetooth controller.
14 Can not specify no-affinity.
16 config BTDM_CONTROLLER_PINNED_TO_CORE_0
17 bool "Core 0 (PRO CPU)"
18 config BTDM_CONTROLLER_PINNED_TO_CORE_1
19 bool "Core 1 (APP CPU)"
20 depends on !FREERTOS_UNICORE
23 config BTDM_CONTROLLER_PINNED_TO_CORE
25 default 0 if BTDM_CONTROLLER_PINNED_TO_CORE_0
26 default 1 if BTDM_CONTROLLER_PINNED_TO_CORE_1
29 choice BTDM_CONTROLLER_HCI_MODE_CHOICE
33 Speicify HCI mode as VHCI or UART(H4)
35 config BTDM_CONTROLLER_HCI_MODE_VHCI
38 Normal option. Mostly, choose this VHCI when bluetooth host run on ESP32, too.
40 config BTDM_CONTROLLER_HCI_MODE_UART_H4
43 If use external bluetooth host which run on other hardware and use UART as the HCI interface,
47 menu "HCI UART(H4) Options"
48 visible if BTDM_CONTROLLER_HCI_MODE_UART_H4
51 int "UART Number for HCI"
52 depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
56 Uart number for HCI. The available uart is UART1 and UART2.
58 config BT_HCI_UART_BAUDRATE
59 int "UART Baudrate for HCI"
60 depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
64 UART Baudrate for HCI. Please use standard baudrate.
67 menu "MODEM SLEEP Options"
70 config BTDM_CONTROLLER_MODEM_SLEEP
71 bool "Bluetooth modem sleep"
75 Enable/disable bluetooth controller low power mode.
76 Note that currently there is problem in the combination use of bluetooth modem sleep and Dynamic Frequency Scaling(DFS). So do not enable DFS if bluetooth modem sleep is in use.
78 choice BTDM_MODEM_SLEEP_MODE
79 prompt "Bluetooth Modem sleep mode"
80 depends on BTDM_CONTROLLER_MODEM_SLEEP
82 To select which strategy to use for modem sleep
84 config BTDM_MODEM_SLEEP_MODE_ORIG
85 bool "ORIG Mode(sleep with low power clock)"
87 ORIG mode is a deep sleep mode that can be used for dual mode controller. In this mode, bluetooth controller sleeps between BR/EDR frames and BLE events. A low power clock is used to maintain bluetooth reference clock.
88 config BTDM_MODEM_SLEEP_MODE_EVED
91 This mode is for BLE only.
94 choice BTDM_LOW_POWER_CLOCK
95 prompt "Bluetooth low power clock"
96 depends on BTDM_MODEM_SLEEP_MODE_ORIG
98 Select the low power clock source for bluetooth controller
100 config BTDM_LPCLK_SEL_MAIN_XTAL
102 config BTDM_LPCLK_SEL_EXT_32K_XTAL
103 bool "External 32kHz crystal"
104 depends on ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL
109 menuconfig BLUEDROID_ENABLED
110 bool "Bluedroid Enable"
111 depends on BTDM_CONTROLLER_HCI_MODE_VHCI
114 This enables the default Bluedroid Bluetooth stack
116 choice BLUEDROID_PINNED_TO_CORE_CHOICE
117 prompt "The cpu core which Bluedroid run"
118 depends on BLUEDROID_ENABLED && !FREERTOS_UNICORE
120 Which the cpu core to run Bluedroid. Can choose core0 and core1.
121 Can not specify no-affinity.
123 config BLUEDROID_PINNED_TO_CORE_0
124 bool "Core 0 (PRO CPU)"
125 config BLUEDROID_PINNED_TO_CORE_1
126 bool "Core 1 (APP CPU)"
127 depends on !FREERTOS_UNICORE
130 config BLUEDROID_PINNED_TO_CORE
132 depends on BLUEDROID_ENABLED
133 default 0 if BLUEDROID_PINNED_TO_CORE_0
134 default 1 if BLUEDROID_PINNED_TO_CORE_1
137 config BTC_TASK_STACK_SIZE
138 int "Bluetooth event (callback to application) task stack size"
139 depends on BLUEDROID_ENABLED
142 This select btc task stack size
144 config BLUEDROID_MEM_DEBUG
145 bool "Bluedroid memory debug"
146 depends on BLUEDROID_ENABLED
149 Bluedroid memory debug
151 config CLASSIC_BT_ENABLED
152 bool "Classic Bluetooth"
153 depends on BLUEDROID_ENABLED
156 For now this option needs "SMP_ENABLE" to be set to yes
159 bool "Enable Secure Simple Pairing"
160 depends on CLASSIC_BT_ENABLED
161 default CLASSIC_BT_ENABLED
165 depends on CLASSIC_BT_ENABLED
168 Advanced Audio Distrubution Profile
170 config A2DP_SINK_TASK_STACK_SIZE
171 int "A2DP sink (audio stream decoding) task stack size"
172 depends on A2DP_ENABLE
175 config A2DP_SOURCE_TASK_STACK_SIZE
176 int "A2DP source (audio stream encoding) task stack size"
177 depends on A2DP_ENABLE
180 config BT_SPP_ENABLED
182 depends on CLASSIC_BT_ENABLED
185 This enables the Serial Port Profile
188 bool "Hands Free/Handset Profile"
189 depends on CLASSIC_BT_ENABLED
193 prompt "Hands-free Profile Role configuration"
194 depends on HFP_ENABLE
196 config HFP_CLIENT_ENABLE
197 bool "Hands Free Unit"
200 choice HFP_AUDIO_DATA_PATH
201 prompt "audio(SCO) data path"
202 depends on HFP_ENABLE
204 config HFP_AUDIO_DATA_PATH_PCM
207 This enables the Serial Port Profile
208 config HFP_AUDIO_DATA_PATH_HCI
211 This enables the Serial Port Profile
215 bool "Include GATT server module(GATTS)"
216 depends on BLUEDROID_ENABLED
219 This option can be disabled when the app work only on gatt client mode
222 bool "Include GATT client module(GATTC)"
223 depends on BLUEDROID_ENABLED
226 This option can be close when the app work only on gatt server mode
228 config GATTC_CACHE_NVS_FLASH
229 bool "Save gattc cache data to nvs flash"
230 depends on GATTC_ENABLE
233 This select can save gattc cache data to nvs flash
235 config BLE_SMP_ENABLE
236 bool "Include BLE security module(SMP)"
237 depends on BLUEDROID_ENABLED
240 This option can be close when the app not used the ble security connect.
242 config BT_STACK_NO_LOG
243 bool "Disable BT debug logs (minimize bin size)"
244 depends on BLUEDROID_ENABLED
247 This select can save the rodata code size
249 menu "BT DEBUG LOG LEVEL"
250 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
252 choice HCI_INITIAL_TRACE_LEVEL
254 default HCI_TRACE_LEVEL_WARNING
255 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
257 Define BT trace level for HCI layer
259 config HCI_TRACE_LEVEL_NONE
261 config HCI_TRACE_LEVEL_ERROR
263 config HCI_TRACE_LEVEL_WARNING
265 config HCI_TRACE_LEVEL_API
267 config HCI_TRACE_LEVEL_EVENT
269 config HCI_TRACE_LEVEL_DEBUG
271 config HCI_TRACE_LEVEL_VERBOSE
275 config HCI_INITIAL_TRACE_LEVEL
277 depends on BLUEDROID_ENABLED
278 default 0 if HCI_TRACE_LEVEL_NONE
279 default 1 if HCI_TRACE_LEVEL_ERROR
280 default 2 if HCI_TRACE_LEVEL_WARNING
281 default 3 if HCI_TRACE_LEVEL_API
282 default 4 if HCI_TRACE_LEVEL_EVENT
283 default 5 if HCI_TRACE_LEVEL_DEBUG
284 default 6 if HCI_TRACE_LEVEL_VERBOSE
287 choice BTM_INITIAL_TRACE_LEVEL
289 default BTM_TRACE_LEVEL_WARNING
290 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
292 Define BT trace level for BTM layer
294 config BTM_TRACE_LEVEL_NONE
296 config BTM_TRACE_LEVEL_ERROR
298 config BTM_TRACE_LEVEL_WARNING
300 config BTM_TRACE_LEVEL_API
302 config BTM_TRACE_LEVEL_EVENT
304 config BTM_TRACE_LEVEL_DEBUG
306 config BTM_TRACE_LEVEL_VERBOSE
310 config BTM_INITIAL_TRACE_LEVEL
312 depends on BLUEDROID_ENABLED
313 default 0 if BTM_TRACE_LEVEL_NONE
314 default 1 if BTM_TRACE_LEVEL_ERROR
315 default 2 if BTM_TRACE_LEVEL_WARNING
316 default 3 if BTM_TRACE_LEVEL_API
317 default 4 if BTM_TRACE_LEVEL_EVENT
318 default 5 if BTM_TRACE_LEVEL_DEBUG
319 default 6 if BTM_TRACE_LEVEL_VERBOSE
322 choice L2CAP_INITIAL_TRACE_LEVEL
324 default L2CAP_TRACE_LEVEL_WARNING
325 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
327 Define BT trace level for L2CAP layer
329 config L2CAP_TRACE_LEVEL_NONE
331 config L2CAP_TRACE_LEVEL_ERROR
333 config L2CAP_TRACE_LEVEL_WARNING
335 config L2CAP_TRACE_LEVEL_API
337 config L2CAP_TRACE_LEVEL_EVENT
339 config L2CAP_TRACE_LEVEL_DEBUG
341 config L2CAP_TRACE_LEVEL_VERBOSE
345 config L2CAP_INITIAL_TRACE_LEVEL
347 depends on BLUEDROID_ENABLED
348 default 0 if L2CAP_TRACE_LEVEL_NONE
349 default 1 if L2CAP_TRACE_LEVEL_ERROR
350 default 2 if L2CAP_TRACE_LEVEL_WARNING
351 default 3 if L2CAP_TRACE_LEVEL_API
352 default 4 if L2CAP_TRACE_LEVEL_EVENT
353 default 5 if L2CAP_TRACE_LEVEL_DEBUG
354 default 6 if L2CAP_TRACE_LEVEL_VERBOSE
357 choice RFCOMM_INITIAL_TRACE_LEVEL
358 prompt "RFCOMM layer"
359 default RFCOMM_TRACE_LEVEL_WARNING
360 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
362 Define BT trace level for RFCOMM layer
364 config RFCOMM_TRACE_LEVEL_NONE
366 config RFCOMM_TRACE_LEVEL_ERROR
368 config RFCOMM_TRACE_LEVEL_WARNING
370 config RFCOMM_TRACE_LEVEL_API
372 config RFCOMM_TRACE_LEVEL_EVENT
374 config RFCOMM_TRACE_LEVEL_DEBUG
376 config RFCOMM_TRACE_LEVEL_VERBOSE
380 config RFCOMM_INITIAL_TRACE_LEVEL
382 depends on BLUEDROID_ENABLED
383 default 0 if RFCOMM_TRACE_LEVEL_NONE
384 default 1 if RFCOMM_TRACE_LEVEL_ERROR
385 default 2 if RFCOMM_TRACE_LEVEL_WARNING
386 default 3 if RFCOMM_TRACE_LEVEL_API
387 default 4 if RFCOMM_TRACE_LEVEL_EVENT
388 default 5 if RFCOMM_TRACE_LEVEL_DEBUG
389 default 6 if RFCOMM_TRACE_LEVEL_VERBOSE
392 choice SDP_INITIAL_TRACE_LEVEL
394 default SDP_TRACE_LEVEL_WARNING
395 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
397 Define BT trace level for SDP layer
399 config SDP_TRACE_LEVEL_NONE
401 config SDP_TRACE_LEVEL_ERROR
403 config SDP_TRACE_LEVEL_WARNING
405 config SDP_TRACE_LEVEL_API
407 config SDP_TRACE_LEVEL_EVENT
409 config SDP_TRACE_LEVEL_DEBUG
411 config SDP_TRACE_LEVEL_VERBOSE
415 config SDP_INITIAL_TRACE_LEVEL
417 depends on BLUEDROID_ENABLED
418 default 0 if SDP_TRACE_LEVEL_NONE
419 default 1 if SDP_TRACE_LEVEL_ERROR
420 default 2 if SDP_TRACE_LEVEL_WARNING
421 default 3 if SDP_TRACE_LEVEL_API
422 default 4 if SDP_TRACE_LEVEL_EVENT
423 default 5 if SDP_TRACE_LEVEL_DEBUG
424 default 6 if SDP_TRACE_LEVEL_VERBOSE
427 choice GAP_INITIAL_TRACE_LEVEL
429 default GAP_TRACE_LEVEL_WARNING
430 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
432 Define BT trace level for GAP layer
434 config GAP_TRACE_LEVEL_NONE
436 config GAP_TRACE_LEVEL_ERROR
438 config GAP_TRACE_LEVEL_WARNING
440 config GAP_TRACE_LEVEL_API
442 config GAP_TRACE_LEVEL_EVENT
444 config GAP_TRACE_LEVEL_DEBUG
446 config GAP_TRACE_LEVEL_VERBOSE
450 config GAP_INITIAL_TRACE_LEVEL
452 depends on BLUEDROID_ENABLED
453 default 0 if GAP_TRACE_LEVEL_NONE
454 default 1 if GAP_TRACE_LEVEL_ERROR
455 default 2 if GAP_TRACE_LEVEL_WARNING
456 default 3 if GAP_TRACE_LEVEL_API
457 default 4 if GAP_TRACE_LEVEL_EVENT
458 default 5 if GAP_TRACE_LEVEL_DEBUG
459 default 6 if GAP_TRACE_LEVEL_VERBOSE
462 choice BNEP_INITIAL_TRACE_LEVEL
464 default BNEP_TRACE_LEVEL_WARNING
465 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
467 Define BT trace level for BNEP layer
469 config BNEP_TRACE_LEVEL_NONE
471 config BNEP_TRACE_LEVEL_ERROR
473 config BNEP_TRACE_LEVEL_WARNING
475 config BNEP_TRACE_LEVEL_API
477 config BNEP_TRACE_LEVEL_EVENT
479 config BNEP_TRACE_LEVEL_DEBUG
481 config BNEP_TRACE_LEVEL_VERBOSE
485 config BNEP_INITIAL_TRACE_LEVEL
487 depends on BLUEDROID_ENABLED
488 default 0 if BNEP_TRACE_LEVEL_NONE
489 default 1 if BNEP_TRACE_LEVEL_ERROR
490 default 2 if BNEP_TRACE_LEVEL_WARNING
491 default 3 if BNEP_TRACE_LEVEL_API
492 default 4 if BNEP_TRACE_LEVEL_EVENT
493 default 5 if BNEP_TRACE_LEVEL_DEBUG
494 default 6 if BNEP_TRACE_LEVEL_VERBOSE
497 choice PAN_INITIAL_TRACE_LEVEL
499 default PAN_TRACE_LEVEL_WARNING
500 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
502 Define BT trace level for PAN layer
504 config PAN_TRACE_LEVEL_NONE
506 config PAN_TRACE_LEVEL_ERROR
508 config PAN_TRACE_LEVEL_WARNING
510 config PAN_TRACE_LEVEL_API
512 config PAN_TRACE_LEVEL_EVENT
514 config PAN_TRACE_LEVEL_DEBUG
516 config PAN_TRACE_LEVEL_VERBOSE
520 config PAN_INITIAL_TRACE_LEVEL
522 depends on BLUEDROID_ENABLED
523 default 0 if PAN_TRACE_LEVEL_NONE
524 default 1 if PAN_TRACE_LEVEL_ERROR
525 default 2 if PAN_TRACE_LEVEL_WARNING
526 default 3 if PAN_TRACE_LEVEL_API
527 default 4 if PAN_TRACE_LEVEL_EVENT
528 default 5 if PAN_TRACE_LEVEL_DEBUG
529 default 6 if PAN_TRACE_LEVEL_VERBOSE
532 choice A2D_INITIAL_TRACE_LEVEL
534 default A2D_TRACE_LEVEL_WARNING
535 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
537 Define BT trace level for A2D layer
539 config A2D_TRACE_LEVEL_NONE
541 config A2D_TRACE_LEVEL_ERROR
543 config A2D_TRACE_LEVEL_WARNING
545 config A2D_TRACE_LEVEL_API
547 config A2D_TRACE_LEVEL_EVENT
549 config A2D_TRACE_LEVEL_DEBUG
551 config A2D_TRACE_LEVEL_VERBOSE
555 config A2D_INITIAL_TRACE_LEVEL
557 depends on BLUEDROID_ENABLED
558 default 0 if A2D_TRACE_LEVEL_NONE
559 default 1 if A2D_TRACE_LEVEL_ERROR
560 default 2 if A2D_TRACE_LEVEL_WARNING
561 default 3 if A2D_TRACE_LEVEL_API
562 default 4 if A2D_TRACE_LEVEL_EVENT
563 default 5 if A2D_TRACE_LEVEL_DEBUG
564 default 6 if A2D_TRACE_LEVEL_VERBOSE
567 choice AVDT_INITIAL_TRACE_LEVEL
569 default AVDT_TRACE_LEVEL_WARNING
570 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
572 Define BT trace level for AVDT layer
574 config AVDT_TRACE_LEVEL_NONE
576 config AVDT_TRACE_LEVEL_ERROR
578 config AVDT_TRACE_LEVEL_WARNING
580 config AVDT_TRACE_LEVEL_API
582 config AVDT_TRACE_LEVEL_EVENT
584 config AVDT_TRACE_LEVEL_DEBUG
586 config AVDT_TRACE_LEVEL_VERBOSE
590 config AVDT_INITIAL_TRACE_LEVEL
592 depends on BLUEDROID_ENABLED
593 default 0 if AVDT_TRACE_LEVEL_NONE
594 default 1 if AVDT_TRACE_LEVEL_ERROR
595 default 2 if AVDT_TRACE_LEVEL_WARNING
596 default 3 if AVDT_TRACE_LEVEL_API
597 default 4 if AVDT_TRACE_LEVEL_EVENT
598 default 5 if AVDT_TRACE_LEVEL_DEBUG
599 default 6 if AVDT_TRACE_LEVEL_VERBOSE
602 choice AVCT_INITIAL_TRACE_LEVEL
604 default AVCT_TRACE_LEVEL_WARNING
605 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
607 Define BT trace level for AVCT layer
609 config AVCT_TRACE_LEVEL_NONE
611 config AVCT_TRACE_LEVEL_ERROR
613 config AVCT_TRACE_LEVEL_WARNING
615 config AVCT_TRACE_LEVEL_API
617 config AVCT_TRACE_LEVEL_EVENT
619 config AVCT_TRACE_LEVEL_DEBUG
621 config AVCT_TRACE_LEVEL_VERBOSE
625 config AVCT_INITIAL_TRACE_LEVEL
627 depends on BLUEDROID_ENABLED
628 default 0 if AVCT_TRACE_LEVEL_NONE
629 default 1 if AVCT_TRACE_LEVEL_ERROR
630 default 2 if AVCT_TRACE_LEVEL_WARNING
631 default 3 if AVCT_TRACE_LEVEL_API
632 default 4 if AVCT_TRACE_LEVEL_EVENT
633 default 5 if AVCT_TRACE_LEVEL_DEBUG
634 default 6 if AVCT_TRACE_LEVEL_VERBOSE
637 choice AVRC_INITIAL_TRACE_LEVEL
639 default AVRC_TRACE_LEVEL_WARNING
640 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
642 Define BT trace level for AVRC layer
644 config AVRC_TRACE_LEVEL_NONE
646 config AVRC_TRACE_LEVEL_ERROR
648 config AVRC_TRACE_LEVEL_WARNING
650 config AVRC_TRACE_LEVEL_API
652 config AVRC_TRACE_LEVEL_EVENT
654 config AVRC_TRACE_LEVEL_DEBUG
656 config AVRC_TRACE_LEVEL_VERBOSE
660 config AVRC_INITIAL_TRACE_LEVEL
662 depends on BLUEDROID_ENABLED
663 default 0 if AVRC_TRACE_LEVEL_NONE
664 default 1 if AVRC_TRACE_LEVEL_ERROR
665 default 2 if AVRC_TRACE_LEVEL_WARNING
666 default 3 if AVRC_TRACE_LEVEL_API
667 default 4 if AVRC_TRACE_LEVEL_EVENT
668 default 5 if AVRC_TRACE_LEVEL_DEBUG
669 default 6 if AVRC_TRACE_LEVEL_VERBOSE
672 choice MCA_INITIAL_TRACE_LEVEL
674 default MCA_TRACE_LEVEL_WARNING
675 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
677 Define BT trace level for MCA layer
679 config MCA_TRACE_LEVEL_NONE
681 config MCA_TRACE_LEVEL_ERROR
683 config MCA_TRACE_LEVEL_WARNING
685 config MCA_TRACE_LEVEL_API
687 config MCA_TRACE_LEVEL_EVENT
689 config MCA_TRACE_LEVEL_DEBUG
691 config MCA_TRACE_LEVEL_VERBOSE
695 config MCA_INITIAL_TRACE_LEVEL
697 depends on BLUEDROID_ENABLED
698 default 0 if MCA_TRACE_LEVEL_NONE
699 default 1 if MCA_TRACE_LEVEL_ERROR
700 default 2 if MCA_TRACE_LEVEL_WARNING
701 default 3 if MCA_TRACE_LEVEL_API
702 default 4 if MCA_TRACE_LEVEL_EVENT
703 default 5 if MCA_TRACE_LEVEL_DEBUG
704 default 6 if MCA_TRACE_LEVEL_VERBOSE
707 choice HID_INITIAL_TRACE_LEVEL
709 default HID_TRACE_LEVEL_WARNING
710 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
712 Define BT trace level for HID layer
714 config HID_TRACE_LEVEL_NONE
716 config HID_TRACE_LEVEL_ERROR
718 config HID_TRACE_LEVEL_WARNING
720 config HID_TRACE_LEVEL_API
722 config HID_TRACE_LEVEL_EVENT
724 config HID_TRACE_LEVEL_DEBUG
726 config HID_TRACE_LEVEL_VERBOSE
730 config HID_INITIAL_TRACE_LEVEL
732 depends on BLUEDROID_ENABLED
733 default 0 if HID_TRACE_LEVEL_NONE
734 default 1 if HID_TRACE_LEVEL_ERROR
735 default 2 if HID_TRACE_LEVEL_WARNING
736 default 3 if HID_TRACE_LEVEL_API
737 default 4 if HID_TRACE_LEVEL_EVENT
738 default 5 if HID_TRACE_LEVEL_DEBUG
739 default 6 if HID_TRACE_LEVEL_VERBOSE
742 choice APPL_INITIAL_TRACE_LEVEL
744 default APPL_TRACE_LEVEL_WARNING
745 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
747 Define BT trace level for APPL layer
749 config APPL_TRACE_LEVEL_NONE
751 config APPL_TRACE_LEVEL_ERROR
753 config APPL_TRACE_LEVEL_WARNING
755 config APPL_TRACE_LEVEL_API
757 config APPL_TRACE_LEVEL_EVENT
759 config APPL_TRACE_LEVEL_DEBUG
761 config APPL_TRACE_LEVEL_VERBOSE
765 config APPL_INITIAL_TRACE_LEVEL
767 depends on BLUEDROID_ENABLED
768 default 0 if APPL_TRACE_LEVEL_NONE
769 default 1 if APPL_TRACE_LEVEL_ERROR
770 default 2 if APPL_TRACE_LEVEL_WARNING
771 default 3 if APPL_TRACE_LEVEL_API
772 default 4 if APPL_TRACE_LEVEL_EVENT
773 default 5 if APPL_TRACE_LEVEL_DEBUG
774 default 6 if APPL_TRACE_LEVEL_VERBOSE
777 choice GATT_INITIAL_TRACE_LEVEL
779 default GATT_TRACE_LEVEL_WARNING
780 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
782 Define BT trace level for GATT layer
784 config GATT_TRACE_LEVEL_NONE
786 config GATT_TRACE_LEVEL_ERROR
788 config GATT_TRACE_LEVEL_WARNING
790 config GATT_TRACE_LEVEL_API
792 config GATT_TRACE_LEVEL_EVENT
794 config GATT_TRACE_LEVEL_DEBUG
796 config GATT_TRACE_LEVEL_VERBOSE
800 config GATT_INITIAL_TRACE_LEVEL
802 depends on BLUEDROID_ENABLED
803 default 0 if GATT_TRACE_LEVEL_NONE
804 default 1 if GATT_TRACE_LEVEL_ERROR
805 default 2 if GATT_TRACE_LEVEL_WARNING
806 default 3 if GATT_TRACE_LEVEL_API
807 default 4 if GATT_TRACE_LEVEL_EVENT
808 default 5 if GATT_TRACE_LEVEL_DEBUG
809 default 6 if GATT_TRACE_LEVEL_VERBOSE
812 choice SMP_INITIAL_TRACE_LEVEL
814 default SMP_TRACE_LEVEL_WARNING
815 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
817 Define BT trace level for SMP layer
819 config SMP_TRACE_LEVEL_NONE
821 config SMP_TRACE_LEVEL_ERROR
823 config SMP_TRACE_LEVEL_WARNING
825 config SMP_TRACE_LEVEL_API
827 config SMP_TRACE_LEVEL_EVENT
829 config SMP_TRACE_LEVEL_DEBUG
831 config SMP_TRACE_LEVEL_VERBOSE
835 config SMP_INITIAL_TRACE_LEVEL
837 depends on BLUEDROID_ENABLED
838 default 0 if SMP_TRACE_LEVEL_NONE
839 default 1 if SMP_TRACE_LEVEL_ERROR
840 default 2 if SMP_TRACE_LEVEL_WARNING
841 default 3 if SMP_TRACE_LEVEL_API
842 default 4 if SMP_TRACE_LEVEL_EVENT
843 default 5 if SMP_TRACE_LEVEL_DEBUG
844 default 6 if SMP_TRACE_LEVEL_VERBOSE
847 choice BTIF_INITIAL_TRACE_LEVEL
849 default BTIF_TRACE_LEVEL_WARNING
850 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
852 Define BT trace level for BTIF layer
854 config BTIF_TRACE_LEVEL_NONE
856 config BTIF_TRACE_LEVEL_ERROR
858 config BTIF_TRACE_LEVEL_WARNING
860 config BTIF_TRACE_LEVEL_API
862 config BTIF_TRACE_LEVEL_EVENT
864 config BTIF_TRACE_LEVEL_DEBUG
866 config BTIF_TRACE_LEVEL_VERBOSE
870 config BTIF_INITIAL_TRACE_LEVEL
872 depends on BLUEDROID_ENABLED
873 default 0 if BTIF_TRACE_LEVEL_NONE
874 default 1 if BTIF_TRACE_LEVEL_ERROR
875 default 2 if BTIF_TRACE_LEVEL_WARNING
876 default 3 if BTIF_TRACE_LEVEL_API
877 default 4 if BTIF_TRACE_LEVEL_EVENT
878 default 5 if BTIF_TRACE_LEVEL_DEBUG
879 default 6 if BTIF_TRACE_LEVEL_VERBOSE
882 choice BTC_INITIAL_TRACE_LEVEL
884 default BTC_TRACE_LEVEL_WARNING
885 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
887 Define BT trace level for BTC layer
889 config BTC_TRACE_LEVEL_NONE
891 config BTC_TRACE_LEVEL_ERROR
893 config BTC_TRACE_LEVEL_WARNING
895 config BTC_TRACE_LEVEL_API
897 config BTC_TRACE_LEVEL_EVENT
899 config BTC_TRACE_LEVEL_DEBUG
901 config BTC_TRACE_LEVEL_VERBOSE
905 config BTC_INITIAL_TRACE_LEVEL
907 depends on BLUEDROID_ENABLED
908 default 0 if BTC_TRACE_LEVEL_NONE
909 default 1 if BTC_TRACE_LEVEL_ERROR
910 default 2 if BTC_TRACE_LEVEL_WARNING
911 default 3 if BTC_TRACE_LEVEL_API
912 default 4 if BTC_TRACE_LEVEL_EVENT
913 default 5 if BTC_TRACE_LEVEL_DEBUG
914 default 6 if BTC_TRACE_LEVEL_VERBOSE
917 choice OSI_INITIAL_TRACE_LEVEL
919 default OSI_TRACE_LEVEL_WARNING
920 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
922 Define BT trace level for OSI layer
924 config OSI_TRACE_LEVEL_NONE
926 config OSI_TRACE_LEVEL_ERROR
928 config OSI_TRACE_LEVEL_WARNING
930 config OSI_TRACE_LEVEL_API
932 config OSI_TRACE_LEVEL_EVENT
934 config OSI_TRACE_LEVEL_DEBUG
936 config OSI_TRACE_LEVEL_VERBOSE
940 config OSI_INITIAL_TRACE_LEVEL
942 depends on BLUEDROID_ENABLED
943 default 0 if OSI_TRACE_LEVEL_NONE
944 default 1 if OSI_TRACE_LEVEL_ERROR
945 default 2 if OSI_TRACE_LEVEL_WARNING
946 default 3 if OSI_TRACE_LEVEL_API
947 default 4 if OSI_TRACE_LEVEL_EVENT
948 default 5 if OSI_TRACE_LEVEL_DEBUG
949 default 6 if OSI_TRACE_LEVEL_VERBOSE
952 choice BLUFI_INITIAL_TRACE_LEVEL
954 default BLUFI_TRACE_LEVEL_WARNING
955 depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
957 Define BT trace level for BLUFI layer
959 config BLUFI_TRACE_LEVEL_NONE
961 config BLUFI_TRACE_LEVEL_ERROR
963 config BLUFI_TRACE_LEVEL_WARNING
965 config BLUFI_TRACE_LEVEL_API
967 config BLUFI_TRACE_LEVEL_EVENT
969 config BLUFI_TRACE_LEVEL_DEBUG
971 config BLUFI_TRACE_LEVEL_VERBOSE
975 config BLUFI_INITIAL_TRACE_LEVEL
977 depends on BLUEDROID_ENABLED
978 default 0 if BLUFI_TRACE_LEVEL_NONE
979 default 1 if BLUFI_TRACE_LEVEL_ERROR
980 default 2 if BLUFI_TRACE_LEVEL_WARNING
981 default 3 if BLUFI_TRACE_LEVEL_API
982 default 4 if BLUFI_TRACE_LEVEL_EVENT
983 default 5 if BLUFI_TRACE_LEVEL_DEBUG
984 default 6 if BLUFI_TRACE_LEVEL_VERBOSE
987 endmenu #BT DEBUG LOG LEVEL
990 config BT_ACL_CONNECTIONS
991 int "BT/BLE MAX ACL CONNECTIONS(1~7)"
992 depends on BLUEDROID_ENABLED
996 Maximum BT/BLE connection count
998 config BT_ALLOCATION_FROM_SPIRAM_FIRST
999 bool "BT/BLE will first malloc the memory from the PSRAM"
1000 depends on BLUEDROID_ENABLED
1003 This select can save the internal RAM if there have the PSRAM
1005 config BT_BLE_DYNAMIC_ENV_MEMORY
1006 bool "Use dynamic memory allocation in BT/BLE stack"
1007 depends on BLUEDROID_ENABLED
1010 This select can make the allocation of memory will become more flexible
1012 config BLE_SCAN_DUPLICATE
1013 bool "BLE Scan Duplicate Options "
1014 depends on BLUEDROID_ENABLED
1017 This select enables parameters setting of BLE scan duplicate.
1019 config DUPLICATE_SCAN_CACHE_SIZE
1020 int "Maximum number of devices in scan duplicate filter"
1021 depends on BLE_SCAN_DUPLICATE
1025 Maximum number of devices which can be recorded in scan duplicate filter.
1026 When the maximum amount of device in the filter is reached, the cache will be refreshed.
1028 config BLE_MESH_SCAN_DUPLICATE_EN
1029 bool "Special duplicate scan mechanism for BLE Mesh scan"
1030 depends on BLE_SCAN_DUPLICATE
1033 This enables the BLE scan duplicate for special BLE Mesh scan.
1035 config MESH_DUPLICATE_SCAN_CACHE_SIZE
1036 int "Maximum number of Mesh adv packets in scan duplicate filter"
1037 depends on BLE_MESH_SCAN_DUPLICATE_EN
1041 Maximum number of adv packets which can be recorded in duplicate scan cache for BLE Mesh.
1042 When the maximum amount of device in the filter is reached, the cache will be refreshed.
1046 depends on BLUEDROID_ENABLED
1047 default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
1049 # Memory reserved at start of DRAM for Bluetooth stack
1050 config BT_RESERVE_DRAM
1052 default 0x10000 if BT_ENABLED