Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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 A2DP_ENABLE
  98. bool "A2DP"
  99. depends on CLASSIC_BT_ENABLED
  100. default n
  101. help
  102. Advanced Audio Distrubution Profile
  103. choice A2DP_ROLE
  104. prompt "A2DP ROLE config"
  105. depends on A2DP_ENABLE
  106. config A2DP_SINK_ENABLE
  107. bool "SINK"
  108. config A2DP_SRC_ENABLE
  109. bool "SOURCE"
  110. endchoice
  111. config A2DP_SINK_TASK_STACK_SIZE
  112. int "A2DP sink (audio stream decoding) task stack size"
  113. depends on A2DP_ENABLE && A2DP_SINK_ENABLE
  114. default 2048
  115. config A2DP_SOURCE_TASK_STACK_SIZE
  116. int "A2DP source (audio stream encoding) task stack size"
  117. depends on A2DP_ENABLE && A2DP_SRC_ENABLE
  118. default 2048
  119. config BT_SPP_ENABLED
  120. bool "SPP"
  121. depends on CLASSIC_BT_ENABLED
  122. default n
  123. help
  124. This enables the Serial Port Profile
  125. config GATTS_ENABLE
  126. bool "Include GATT server module(GATTS)"
  127. depends on BLUEDROID_ENABLED
  128. default y
  129. help
  130. This option can be disabled when the app work only on gatt client mode
  131. config GATTC_ENABLE
  132. bool "Include GATT client module(GATTC)"
  133. depends on BLUEDROID_ENABLED
  134. default y
  135. help
  136. This option can be close when the app work only on gatt server mode
  137. config BLE_SMP_ENABLE
  138. bool "Include BLE security module(SMP)"
  139. depends on BLUEDROID_ENABLED
  140. default y
  141. help
  142. This option can be close when the app not used the ble security connect.
  143. config BT_STACK_NO_LOG
  144. bool "Close the bluedroid bt stack log print"
  145. depends on BLUEDROID_ENABLED
  146. default n
  147. help
  148. This select can save the rodata code size
  149. config BT_ACL_CONNECTIONS
  150. int "BT/BLE MAX ACL CONNECTIONS(1~7)"
  151. depends on BLUEDROID_ENABLED
  152. range 1 7
  153. default 4
  154. help
  155. Maximum BT/BLE connection count
  156. config BT_ALLOCATION_FROM_SPIRAM_FIRST
  157. bool "BT/BLE will first malloc the memory from the PSRAM"
  158. depends on BLUEDROID_ENABLED
  159. default n
  160. help
  161. This select can save the internal RAM if there have the PSRAM
  162. config BT_BLE_DYNAMIC_ENV_MEMORY
  163. bool "Use dynamic memory allocation in BT/BLE stack"
  164. depends on BLUEDROID_ENABLED
  165. default n
  166. help
  167. This select can make the allocation of memory will become more flexible
  168. config SMP_ENABLE
  169. bool
  170. depends on BLUEDROID_ENABLED
  171. default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
  172. # Memory reserved at start of DRAM for Bluetooth stack
  173. config BT_RESERVE_DRAM
  174. hex
  175. default 0x10000 if BT_ENABLED
  176. default 0
  177. endmenu