Kconfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. menu Bluetooth
  2. config BT_ENABLED
  3. bool "Bluetooth"
  4. help
  5. Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
  6. choice BTDM_CONTROLLER_PINNED_TO_CORE_CHOICE
  7. prompt "The cpu core which bluetooth controller run"
  8. depends on BT_ENABLED && !FREERTOS_UNICORE
  9. help
  10. Specify the cpu core to run bluetooth controller.
  11. Can not specify no-affinity.
  12. config BTDM_CONTROLLER_PINNED_TO_CORE_0
  13. bool "Core 0 (PRO CPU)"
  14. config BTDM_CONTROLLER_PINNED_TO_CORE_1
  15. bool "Core 1 (APP CPU)"
  16. depends on !FREERTOS_UNICORE
  17. endchoice
  18. config BTDM_CONTROLLER_PINNED_TO_CORE
  19. int
  20. default 0 if BTDM_CONTROLLER_PINNED_TO_CORE_0
  21. default 1 if BTDM_CONTROLLER_PINNED_TO_CORE_1
  22. default 0
  23. choice BTDM_CONTROLLER_HCI_MODE_CHOICE
  24. prompt "HCI mode"
  25. depends on BT_ENABLED
  26. help
  27. Speicify HCI mode as VHCI or UART(H4)
  28. config BTDM_CONTROLLER_HCI_MODE_VHCI
  29. bool "VHCI"
  30. help
  31. Normal option. Mostly, choose this VHCI when bluetooth host run on ESP32, too.
  32. config BTDM_CONTROLLER_HCI_MODE_UART_H4
  33. bool "UART(H4)"
  34. help
  35. If use external bluetooth host which run on other hardware and use UART as the HCI interface,
  36. choose this option.
  37. endchoice
  38. menu "HCI UART(H4) Options"
  39. visible if BTDM_CONTROLLER_HCI_MODE_UART_H4
  40. config BT_HCI_UART_NO
  41. int "UART Number for HCI"
  42. depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
  43. range 1 2
  44. default 1
  45. help
  46. Uart number for HCI. The available uart is UART1 and UART2.
  47. config BT_HCI_UART_BAUDRATE
  48. int "UART Baudrate for HCI"
  49. depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
  50. range 115200 921600
  51. default 921600
  52. help
  53. UART Baudrate for HCI. Please use standard baudrate.
  54. endmenu
  55. menuconfig BLUEDROID_ENABLED
  56. bool "Bluedroid Enable"
  57. depends on BTDM_CONTROLLER_HCI_MODE_VHCI
  58. default y
  59. help
  60. This enables the default Bluedroid Bluetooth stack
  61. choice BLUEDROID_PINNED_TO_CORE_CHOICE
  62. prompt "The cpu core which Bluedroid run"
  63. depends on BLUEDROID_ENABLED && !FREERTOS_UNICORE
  64. help
  65. Which the cpu core to run Bluedroid. Can choose core0 and core1.
  66. Can not specify no-affinity.
  67. config BLUEDROID_PINNED_TO_CORE_0
  68. bool "Core 0 (PRO CPU)"
  69. config BLUEDROID_PINNED_TO_CORE_1
  70. bool "Core 1 (APP CPU)"
  71. depends on !FREERTOS_UNICORE
  72. endchoice
  73. config BLUEDROID_PINNED_TO_CORE
  74. int
  75. depends on BLUEDROID_ENABLED
  76. default 0 if BLUEDROID_PINNED_TO_CORE_0
  77. default 1 if BLUEDROID_PINNED_TO_CORE_1
  78. default 0
  79. config BTC_TASK_STACK_SIZE
  80. int "Bluetooth event (callback to application) task stack size"
  81. depends on BLUEDROID_ENABLED
  82. default 3072
  83. help
  84. This select btc task stack size
  85. config BLUEDROID_MEM_DEBUG
  86. bool "Bluedroid memory debug"
  87. depends on BLUEDROID_ENABLED
  88. default n
  89. help
  90. Bluedroid memory debug
  91. config CLASSIC_BT_ENABLED
  92. bool "Classic Bluetooth"
  93. depends on BLUEDROID_ENABLED
  94. default n
  95. help
  96. For now this option needs "SMP_ENABLE" to be set to yes
  97. config GATTS_ENABLE
  98. bool "Include GATT server module(GATTS)"
  99. depends on BLUEDROID_ENABLED
  100. default y
  101. help
  102. This option can be disabled when the app work only on gatt client mode
  103. config GATTC_ENABLE
  104. bool "Include GATT client module(GATTC)"
  105. depends on BLUEDROID_ENABLED
  106. default y
  107. help
  108. This option can be close when the app work only on gatt server mode
  109. config BLE_SMP_ENABLE
  110. bool "Include BLE security module(SMP)"
  111. depends on BLUEDROID_ENABLED
  112. default y
  113. help
  114. This option can be close when the app not used the ble security connect.
  115. config BT_STACK_NO_LOG
  116. bool "Close the bluedroid bt stack log print"
  117. depends on BLUEDROID_ENABLED
  118. default n
  119. help
  120. This select can save the rodata code size
  121. config BT_ACL_CONNECTIONS
  122. int "BT/BLE MAX ACL CONNECTIONS(1~7)"
  123. depends on BLUEDROID_ENABLED
  124. range 1 7
  125. default 4
  126. help
  127. Maximum BT/BLE connection count
  128. config SMP_ENABLE
  129. bool
  130. depends on BLUEDROID_ENABLED
  131. default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
  132. # Memory reserved at start of DRAM for Bluetooth stack
  133. config BT_RESERVE_DRAM
  134. hex
  135. default 0x10000 if BT_ENABLED
  136. default 0
  137. endmenu