Kconfig 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  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. menu "Bluetooth controller"
  7. visible if BT_ENABLED
  8. choice BTDM_CONTROLLER_MODE
  9. prompt "Bluetooth controller mode (BR/EDR/BLE/DUALMODE)"
  10. depends on BT_ENABLED
  11. help
  12. Specify the bluetooth controller mode (BR/EDR, BLE or dual mode).
  13. config BTDM_CONTROLLER_MODE_BLE_ONLY
  14. bool "BLE Only"
  15. config BTDM_CONTROLLER_MODE_BR_EDR_ONLY
  16. bool "BR/EDR Only"
  17. config BTDM_CONTROLLER_MODE_BTDM
  18. bool "Bluetooth Dual Mode"
  19. endchoice
  20. config BTDM_CONTROLLER_BLE_MAX_CONN
  21. int "BLE Max Connections"
  22. depends on BTDM_CONTROLLER_MODE_BLE_ONLY || BTDM_CONTROLLER_MODE_BTDM
  23. default 3
  24. range 1 9
  25. help
  26. BLE maximum connections of bluetooth controller.
  27. Each connection uses 1KB static DRAM whenever the BT controller is enabled.
  28. config BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN
  29. int "BR/EDR ACL Max Connections"
  30. depends on BTDM_CONTROLLER_MODE_BR_EDR_ONLY || BTDM_CONTROLLER_MODE_BTDM
  31. default 2
  32. range 1 7
  33. help
  34. BR/EDR ACL maximum connections of bluetooth controller.
  35. Each connection uses 1.2KB static DRAM whenever the BT controller is enabled.
  36. config BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN
  37. int "BR/EDR Sync(SCO/eSCO) Max Connections"
  38. depends on BTDM_CONTROLLER_MODE_BR_EDR_ONLY || BTDM_CONTROLLER_MODE_BTDM
  39. default 0
  40. range 0 3
  41. help
  42. BR/EDR Synchronize maximum connections of bluetooth controller.
  43. Each connection uses 2KB static DRAM whenever the BT controller is enabled.
  44. config BTDM_CONTROLLER_BLE_MAX_CONN_EFF
  45. int
  46. default BTDM_CONTROLLER_BLE_MAX_CONN if BTDM_CONTROLLER_MODE_BLE_ONLY || BTDM_CONTROLLER_MODE_BTDM
  47. default 0
  48. config BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_EFF
  49. int
  50. default BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN if BTDM_CONTROLLER_MODE_BR_EDR_ONLY || BTDM_CONTROLLER_MODE_BTDM
  51. default 0
  52. config BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_EFF
  53. int
  54. default BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN if BTDM_CONTROLLER_MODE_BR_EDR_ONLY || BTDM_CONTROLLER_MODE_BTDM
  55. default 0
  56. choice BTDM_CONTROLLER_PINNED_TO_CORE_CHOICE
  57. prompt "The cpu core which bluetooth controller run"
  58. depends on BT_ENABLED && !FREERTOS_UNICORE
  59. help
  60. Specify the cpu core to run bluetooth controller.
  61. Can not specify no-affinity.
  62. config BTDM_CONTROLLER_PINNED_TO_CORE_0
  63. bool "Core 0 (PRO CPU)"
  64. config BTDM_CONTROLLER_PINNED_TO_CORE_1
  65. bool "Core 1 (APP CPU)"
  66. depends on !FREERTOS_UNICORE
  67. endchoice
  68. config BTDM_CONTROLLER_PINNED_TO_CORE
  69. int
  70. default 0 if BTDM_CONTROLLER_PINNED_TO_CORE_0
  71. default 1 if BTDM_CONTROLLER_PINNED_TO_CORE_1
  72. default 0
  73. choice BTDM_CONTROLLER_HCI_MODE_CHOICE
  74. prompt "HCI mode"
  75. depends on BT_ENABLED
  76. help
  77. Speicify HCI mode as VHCI or UART(H4)
  78. config BTDM_CONTROLLER_HCI_MODE_VHCI
  79. bool "VHCI"
  80. help
  81. Normal option. Mostly, choose this VHCI when bluetooth host run on ESP32, too.
  82. config BTDM_CONTROLLER_HCI_MODE_UART_H4
  83. bool "UART(H4)"
  84. help
  85. If use external bluetooth host which run on other hardware and use UART as the HCI interface,
  86. choose this option.
  87. endchoice
  88. menu "HCI UART(H4) Options"
  89. visible if BTDM_CONTROLLER_HCI_MODE_UART_H4
  90. config BT_HCI_UART_NO
  91. int "UART Number for HCI"
  92. depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
  93. range 1 2
  94. default 1
  95. help
  96. Uart number for HCI. The available uart is UART1 and UART2.
  97. config BT_HCI_UART_BAUDRATE
  98. int "UART Baudrate for HCI"
  99. depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
  100. range 115200 921600
  101. default 921600
  102. help
  103. UART Baudrate for HCI. Please use standard baudrate.
  104. endmenu
  105. menu "MODEM SLEEP Options"
  106. visible if BT_ENABLED
  107. config BTDM_CONTROLLER_MODEM_SLEEP
  108. bool "Bluetooth modem sleep"
  109. depends on BT_ENABLED
  110. default y
  111. help
  112. Enable/disable bluetooth controller low power mode.
  113. choice BTDM_MODEM_SLEEP_MODE
  114. prompt "Bluetooth Modem sleep mode"
  115. depends on BTDM_CONTROLLER_MODEM_SLEEP
  116. help
  117. To select which strategy to use for modem sleep
  118. config BTDM_MODEM_SLEEP_MODE_ORIG
  119. bool "ORIG Mode(sleep with low power clock)"
  120. help
  121. ORIG mode is a bluetooth sleep mode that can be used for dual mode controller. In this mode, bluetooth controller
  122. sleeps between BR/EDR frames and BLE events. A low power clock is used to maintain bluetooth reference clock.
  123. config BTDM_MODEM_SLEEP_MODE_EVED
  124. bool "EVED Mode(For internal test only)"
  125. help
  126. EVED mode is for BLE only and is only for internal test. Do not use it for production. this mode is not compatible
  127. with DFS nor light sleep
  128. endchoice
  129. choice BTDM_LOW_POWER_CLOCK
  130. prompt "Bluetooth low power clock"
  131. depends on BTDM_MODEM_SLEEP_MODE_ORIG
  132. help
  133. Select the low power clock source for bluetooth controller
  134. config BTDM_LPCLK_SEL_MAIN_XTAL
  135. bool "Main crystal"
  136. help
  137. Main crystal can be used as low power clock for bluetooth modem sleep. If this option is selected, bluetooth
  138. modem sleep can work under Dynamic Frequency Scaling(DFS) enabled, but cannot work when light sleep is enabled.
  139. Main crystal has a relatively better performance than other bluetooth low power clock sources.
  140. config BTDM_LPCLK_SEL_EXT_32K_XTAL
  141. bool "External 32kHz crystal"
  142. depends on ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL
  143. endchoice
  144. endmenu
  145. config BLE_SCAN_DUPLICATE
  146. bool "BLE Scan Duplicate Options"
  147. depends on (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
  148. default y
  149. help
  150. This select enables parameters setting of BLE scan duplicate.
  151. choice SCAN_DUPLICATE_TYPE
  152. prompt "Scan Duplicate Type"
  153. default SCAN_DUPLICATE_BY_DEVICE_ADDR
  154. depends on BLE_SCAN_DUPLICATE
  155. help
  156. Scan duplicate have three ways. one is "Scan Duplicate By Device Address", This way is to use advertiser address
  157. filtering. The adv packet of the same address is only allowed to be reported once. Another way is "Scan Duplicate
  158. By Device Address And Advertising Data". This way is to use advertising data and device address filtering. All
  159. different adv packets with the same address are allowed to be reported. The last way is "Scan Duplicate By Advertising
  160. Data". This way is to use advertising data filtering. All same advertising data only allow to be reported once even though
  161. they are from different devices.
  162. config SCAN_DUPLICATE_BY_DEVICE_ADDR
  163. bool "Scan Duplicate By Device Address"
  164. help
  165. This way is to use advertiser address filtering. The adv packet of the same address is only allowed to be reported once
  166. config SCAN_DUPLICATE_BY_ADV_DATA
  167. bool "Scan Duplicate By Advertising Data"
  168. help
  169. This way is to use advertising data filtering. All same advertising data only allow to be reported once even though
  170. they are from different devices.
  171. config SCAN_DUPLICATE_BY_ADV_DATA_AND_DEVICE_ADDR
  172. bool "Scan Duplicate By Device Address And Advertising Data"
  173. help
  174. This way is to use advertising data and device address filtering. All different adv packets with the same address are
  175. allowed to be reported.
  176. endchoice
  177. config SCAN_DUPLICATE_TYPE
  178. int
  179. depends on BLE_SCAN_DUPLICATE
  180. default 0 if SCAN_DUPLICATE_BY_DEVICE_ADDR
  181. default 1 if SCAN_DUPLICATE_BY_ADV_DATA
  182. default 2 if SCAN_DUPLICATE_BY_ADV_DATA_AND_DEVICE_ADDR
  183. default 0
  184. config DUPLICATE_SCAN_CACHE_SIZE
  185. int "Maximum number of devices in scan duplicate filter"
  186. depends on BLE_SCAN_DUPLICATE
  187. range 10 1000
  188. default 200
  189. help
  190. Maximum number of devices which can be recorded in scan duplicate filter.
  191. When the maximum amount of device in the filter is reached, the cache will be refreshed.
  192. config BLE_MESH_SCAN_DUPLICATE_EN
  193. bool "Special duplicate scan mechanism for BLE Mesh scan"
  194. depends on BLE_SCAN_DUPLICATE
  195. default n
  196. help
  197. This enables the BLE scan duplicate for special BLE Mesh scan.
  198. config MESH_DUPLICATE_SCAN_CACHE_SIZE
  199. int "Maximum number of Mesh adv packets in scan duplicate filter"
  200. depends on BLE_MESH_SCAN_DUPLICATE_EN
  201. range 10 1000
  202. default 200
  203. help
  204. Maximum number of adv packets which can be recorded in duplicate scan cache for BLE Mesh.
  205. When the maximum amount of device in the filter is reached, the cache will be refreshed.
  206. config BTDM_CONTROLLER_FULL_SCAN_SUPPORTED
  207. bool "BLE full scan feature supported"
  208. depends on BTDM_CONTROLLER_MODE_BLE_ONLY
  209. default n
  210. help
  211. The full scan function is mainly used to provide BLE scan performance.
  212. This is required for scenes with high scan performance requirements, such as BLE Mesh scenes.
  213. endmenu
  214. menuconfig BLUEDROID_ENABLED
  215. bool "Bluedroid Enable"
  216. depends on BTDM_CONTROLLER_HCI_MODE_VHCI
  217. default y
  218. help
  219. This enables the default Bluedroid Bluetooth stack
  220. choice BLUEDROID_PINNED_TO_CORE_CHOICE
  221. prompt "The cpu core which Bluedroid run"
  222. depends on BLUEDROID_ENABLED && !FREERTOS_UNICORE
  223. help
  224. Which the cpu core to run Bluedroid. Can choose core0 and core1.
  225. Can not specify no-affinity.
  226. config BLUEDROID_PINNED_TO_CORE_0
  227. bool "Core 0 (PRO CPU)"
  228. config BLUEDROID_PINNED_TO_CORE_1
  229. bool "Core 1 (APP CPU)"
  230. depends on !FREERTOS_UNICORE
  231. endchoice
  232. config BLUEDROID_PINNED_TO_CORE
  233. int
  234. depends on BLUEDROID_ENABLED
  235. default 0 if BLUEDROID_PINNED_TO_CORE_0
  236. default 1 if BLUEDROID_PINNED_TO_CORE_1
  237. default 0
  238. config BTC_TASK_STACK_SIZE
  239. int "Bluetooth event (callback to application) task stack size"
  240. depends on BLUEDROID_ENABLED
  241. default 3072
  242. help
  243. This select btc task stack size
  244. config BTU_TASK_STACK_SIZE
  245. int "Bluetooth Bluedroid Host Stack task stack size"
  246. depends on BLUEDROID_ENABLED
  247. default 4096
  248. help
  249. This select btu task stack size
  250. config BLUEDROID_MEM_DEBUG
  251. bool "Bluedroid memory debug"
  252. depends on BLUEDROID_ENABLED
  253. default n
  254. help
  255. Bluedroid memory debug
  256. config CLASSIC_BT_ENABLED
  257. bool "Classic Bluetooth"
  258. depends on BLUEDROID_ENABLED
  259. default n
  260. help
  261. For now this option needs "SMP_ENABLE" to be set to yes
  262. config A2DP_ENABLE
  263. bool "A2DP"
  264. depends on CLASSIC_BT_ENABLED
  265. default n
  266. help
  267. Advanced Audio Distrubution Profile
  268. config A2DP_SINK_TASK_STACK_SIZE
  269. int "A2DP sink (audio stream decoding) task stack size"
  270. depends on A2DP_ENABLE
  271. default 2048
  272. config A2DP_SOURCE_TASK_STACK_SIZE
  273. int "A2DP source (audio stream encoding) task stack size"
  274. depends on A2DP_ENABLE
  275. default 2048
  276. config BT_SPP_ENABLED
  277. bool "SPP"
  278. depends on CLASSIC_BT_ENABLED
  279. default n
  280. help
  281. This enables the Serial Port Profile
  282. config HFP_ENABLE
  283. bool "Hands Free/Handset Profile"
  284. depends on CLASSIC_BT_ENABLED
  285. default n
  286. choice HFP_ROLE
  287. prompt "Hands-free Profile Role configuration"
  288. depends on HFP_ENABLE
  289. config HFP_CLIENT_ENABLE
  290. bool "Hands Free Unit"
  291. endchoice
  292. choice HFP_AUDIO_DATA_PATH
  293. prompt "audio(SCO) data path"
  294. depends on HFP_ENABLE
  295. config HFP_AUDIO_DATA_PATH_PCM
  296. bool "PCM"
  297. help
  298. This enables the Serial Port Profile
  299. config HFP_AUDIO_DATA_PATH_HCI
  300. bool "HCI"
  301. help
  302. This enables the Serial Port Profile
  303. endchoice
  304. config BT_SSP_ENABLED
  305. bool "Secure Simple Pairing"
  306. depends on CLASSIC_BT_ENABLED
  307. default y
  308. help
  309. This enables the Secure Simple Pairing. If disable this option, Bluedroid will only support Legacy Pairing
  310. config GATTS_ENABLE
  311. bool "Include GATT server module(GATTS)"
  312. depends on BLUEDROID_ENABLED && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
  313. default y
  314. help
  315. This option can be disabled when the app work only on gatt client mode
  316. choice GATTS_SEND_SERVICE_CHANGE_MODE
  317. prompt "GATTS Service Change Mode"
  318. default GATTS_SEND_SERVICE_CHANGE_AUTO
  319. depends on GATTS_ENABLE
  320. help
  321. Service change indication mode for GATT Server.
  322. config GATTS_SEND_SERVICE_CHANGE_MANUAL
  323. bool "GATTS manually send service change indication"
  324. help
  325. Manually send service change indication through API esp_ble_gatts_send_service_change_indication()
  326. config GATTS_SEND_SERVICE_CHANGE_AUTO
  327. bool "GATTS automatically send service change indication"
  328. help
  329. Let Bluedroid handle the service change indication internally
  330. endchoice
  331. config GATTS_SEND_SERVICE_CHANGE_MODE
  332. int
  333. depends on GATTS_ENABLE
  334. default 0 if GATTS_SEND_SERVICE_CHANGE_AUTO
  335. default 1 if GATTS_SEND_SERVICE_CHANGE_MANUAL
  336. default 0
  337. config GATTC_ENABLE
  338. bool "Include GATT client module(GATTC)"
  339. depends on BLUEDROID_ENABLED && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
  340. default y
  341. help
  342. This option can be close when the app work only on gatt server mode
  343. config GATTC_CACHE_NVS_FLASH
  344. bool "Save gattc cache data to nvs flash"
  345. depends on GATTC_ENABLE && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
  346. default n
  347. help
  348. This select can save gattc cache data to nvs flash
  349. config BLE_SMP_ENABLE
  350. bool "Include BLE security module(SMP)"
  351. depends on BLUEDROID_ENABLED && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
  352. default y
  353. help
  354. This option can be close when the app not used the ble security connect.
  355. config BT_STACK_NO_LOG
  356. bool "Disable BT debug logs (minimize bin size)"
  357. depends on BLUEDROID_ENABLED
  358. default n
  359. help
  360. This select can save the rodata code size
  361. menu "BT DEBUG LOG LEVEL"
  362. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  363. choice HCI_INITIAL_TRACE_LEVEL
  364. prompt "HCI layer"
  365. default HCI_TRACE_LEVEL_WARNING
  366. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  367. help
  368. Define BT trace level for HCI layer
  369. config HCI_TRACE_LEVEL_NONE
  370. bool "NONE"
  371. config HCI_TRACE_LEVEL_ERROR
  372. bool "ERROR"
  373. config HCI_TRACE_LEVEL_WARNING
  374. bool "WARNING"
  375. config HCI_TRACE_LEVEL_API
  376. bool "API"
  377. config HCI_TRACE_LEVEL_EVENT
  378. bool "EVENT"
  379. config HCI_TRACE_LEVEL_DEBUG
  380. bool "DEBUG"
  381. config HCI_TRACE_LEVEL_VERBOSE
  382. bool "VERBOSE"
  383. endchoice
  384. config HCI_INITIAL_TRACE_LEVEL
  385. int
  386. depends on BLUEDROID_ENABLED
  387. default 0 if HCI_TRACE_LEVEL_NONE
  388. default 1 if HCI_TRACE_LEVEL_ERROR
  389. default 2 if HCI_TRACE_LEVEL_WARNING
  390. default 3 if HCI_TRACE_LEVEL_API
  391. default 4 if HCI_TRACE_LEVEL_EVENT
  392. default 5 if HCI_TRACE_LEVEL_DEBUG
  393. default 6 if HCI_TRACE_LEVEL_VERBOSE
  394. default 2
  395. choice BTM_INITIAL_TRACE_LEVEL
  396. prompt "BTM layer"
  397. default BTM_TRACE_LEVEL_WARNING
  398. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  399. help
  400. Define BT trace level for BTM layer
  401. config BTM_TRACE_LEVEL_NONE
  402. bool "NONE"
  403. config BTM_TRACE_LEVEL_ERROR
  404. bool "ERROR"
  405. config BTM_TRACE_LEVEL_WARNING
  406. bool "WARNING"
  407. config BTM_TRACE_LEVEL_API
  408. bool "API"
  409. config BTM_TRACE_LEVEL_EVENT
  410. bool "EVENT"
  411. config BTM_TRACE_LEVEL_DEBUG
  412. bool "DEBUG"
  413. config BTM_TRACE_LEVEL_VERBOSE
  414. bool "VERBOSE"
  415. endchoice
  416. config BTM_INITIAL_TRACE_LEVEL
  417. int
  418. depends on BLUEDROID_ENABLED
  419. default 0 if BTM_TRACE_LEVEL_NONE
  420. default 1 if BTM_TRACE_LEVEL_ERROR
  421. default 2 if BTM_TRACE_LEVEL_WARNING
  422. default 3 if BTM_TRACE_LEVEL_API
  423. default 4 if BTM_TRACE_LEVEL_EVENT
  424. default 5 if BTM_TRACE_LEVEL_DEBUG
  425. default 6 if BTM_TRACE_LEVEL_VERBOSE
  426. default 2
  427. choice L2CAP_INITIAL_TRACE_LEVEL
  428. prompt "L2CAP layer"
  429. default L2CAP_TRACE_LEVEL_WARNING
  430. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  431. help
  432. Define BT trace level for L2CAP layer
  433. config L2CAP_TRACE_LEVEL_NONE
  434. bool "NONE"
  435. config L2CAP_TRACE_LEVEL_ERROR
  436. bool "ERROR"
  437. config L2CAP_TRACE_LEVEL_WARNING
  438. bool "WARNING"
  439. config L2CAP_TRACE_LEVEL_API
  440. bool "API"
  441. config L2CAP_TRACE_LEVEL_EVENT
  442. bool "EVENT"
  443. config L2CAP_TRACE_LEVEL_DEBUG
  444. bool "DEBUG"
  445. config L2CAP_TRACE_LEVEL_VERBOSE
  446. bool "VERBOSE"
  447. endchoice
  448. config L2CAP_INITIAL_TRACE_LEVEL
  449. int
  450. depends on BLUEDROID_ENABLED
  451. default 0 if L2CAP_TRACE_LEVEL_NONE
  452. default 1 if L2CAP_TRACE_LEVEL_ERROR
  453. default 2 if L2CAP_TRACE_LEVEL_WARNING
  454. default 3 if L2CAP_TRACE_LEVEL_API
  455. default 4 if L2CAP_TRACE_LEVEL_EVENT
  456. default 5 if L2CAP_TRACE_LEVEL_DEBUG
  457. default 6 if L2CAP_TRACE_LEVEL_VERBOSE
  458. default 2
  459. choice RFCOMM_INITIAL_TRACE_LEVEL
  460. prompt "RFCOMM layer"
  461. default RFCOMM_TRACE_LEVEL_WARNING
  462. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  463. help
  464. Define BT trace level for RFCOMM layer
  465. config RFCOMM_TRACE_LEVEL_NONE
  466. bool "NONE"
  467. config RFCOMM_TRACE_LEVEL_ERROR
  468. bool "ERROR"
  469. config RFCOMM_TRACE_LEVEL_WARNING
  470. bool "WARNING"
  471. config RFCOMM_TRACE_LEVEL_API
  472. bool "API"
  473. config RFCOMM_TRACE_LEVEL_EVENT
  474. bool "EVENT"
  475. config RFCOMM_TRACE_LEVEL_DEBUG
  476. bool "DEBUG"
  477. config RFCOMM_TRACE_LEVEL_VERBOSE
  478. bool "VERBOSE"
  479. endchoice
  480. config RFCOMM_INITIAL_TRACE_LEVEL
  481. int
  482. depends on BLUEDROID_ENABLED
  483. default 0 if RFCOMM_TRACE_LEVEL_NONE
  484. default 1 if RFCOMM_TRACE_LEVEL_ERROR
  485. default 2 if RFCOMM_TRACE_LEVEL_WARNING
  486. default 3 if RFCOMM_TRACE_LEVEL_API
  487. default 4 if RFCOMM_TRACE_LEVEL_EVENT
  488. default 5 if RFCOMM_TRACE_LEVEL_DEBUG
  489. default 6 if RFCOMM_TRACE_LEVEL_VERBOSE
  490. default 2
  491. choice SDP_INITIAL_TRACE_LEVEL
  492. prompt "SDP layer"
  493. default SDP_TRACE_LEVEL_WARNING
  494. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  495. help
  496. Define BT trace level for SDP layer
  497. config SDP_TRACE_LEVEL_NONE
  498. bool "NONE"
  499. config SDP_TRACE_LEVEL_ERROR
  500. bool "ERROR"
  501. config SDP_TRACE_LEVEL_WARNING
  502. bool "WARNING"
  503. config SDP_TRACE_LEVEL_API
  504. bool "API"
  505. config SDP_TRACE_LEVEL_EVENT
  506. bool "EVENT"
  507. config SDP_TRACE_LEVEL_DEBUG
  508. bool "DEBUG"
  509. config SDP_TRACE_LEVEL_VERBOSE
  510. bool "VERBOSE"
  511. endchoice
  512. config SDP_INITIAL_TRACE_LEVEL
  513. int
  514. depends on BLUEDROID_ENABLED
  515. default 0 if SDP_TRACE_LEVEL_NONE
  516. default 1 if SDP_TRACE_LEVEL_ERROR
  517. default 2 if SDP_TRACE_LEVEL_WARNING
  518. default 3 if SDP_TRACE_LEVEL_API
  519. default 4 if SDP_TRACE_LEVEL_EVENT
  520. default 5 if SDP_TRACE_LEVEL_DEBUG
  521. default 6 if SDP_TRACE_LEVEL_VERBOSE
  522. default 2
  523. choice GAP_INITIAL_TRACE_LEVEL
  524. prompt "GAP layer"
  525. default GAP_TRACE_LEVEL_WARNING
  526. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  527. help
  528. Define BT trace level for GAP layer
  529. config GAP_TRACE_LEVEL_NONE
  530. bool "NONE"
  531. config GAP_TRACE_LEVEL_ERROR
  532. bool "ERROR"
  533. config GAP_TRACE_LEVEL_WARNING
  534. bool "WARNING"
  535. config GAP_TRACE_LEVEL_API
  536. bool "API"
  537. config GAP_TRACE_LEVEL_EVENT
  538. bool "EVENT"
  539. config GAP_TRACE_LEVEL_DEBUG
  540. bool "DEBUG"
  541. config GAP_TRACE_LEVEL_VERBOSE
  542. bool "VERBOSE"
  543. endchoice
  544. config GAP_INITIAL_TRACE_LEVEL
  545. int
  546. depends on BLUEDROID_ENABLED
  547. default 0 if GAP_TRACE_LEVEL_NONE
  548. default 1 if GAP_TRACE_LEVEL_ERROR
  549. default 2 if GAP_TRACE_LEVEL_WARNING
  550. default 3 if GAP_TRACE_LEVEL_API
  551. default 4 if GAP_TRACE_LEVEL_EVENT
  552. default 5 if GAP_TRACE_LEVEL_DEBUG
  553. default 6 if GAP_TRACE_LEVEL_VERBOSE
  554. default 2
  555. choice BNEP_INITIAL_TRACE_LEVEL
  556. prompt "BNEP layer"
  557. default BNEP_TRACE_LEVEL_WARNING
  558. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  559. help
  560. Define BT trace level for BNEP layer
  561. config BNEP_TRACE_LEVEL_NONE
  562. bool "NONE"
  563. config BNEP_TRACE_LEVEL_ERROR
  564. bool "ERROR"
  565. config BNEP_TRACE_LEVEL_WARNING
  566. bool "WARNING"
  567. config BNEP_TRACE_LEVEL_API
  568. bool "API"
  569. config BNEP_TRACE_LEVEL_EVENT
  570. bool "EVENT"
  571. config BNEP_TRACE_LEVEL_DEBUG
  572. bool "DEBUG"
  573. config BNEP_TRACE_LEVEL_VERBOSE
  574. bool "VERBOSE"
  575. endchoice
  576. config BNEP_INITIAL_TRACE_LEVEL
  577. int
  578. depends on BLUEDROID_ENABLED
  579. default 0 if BNEP_TRACE_LEVEL_NONE
  580. default 1 if BNEP_TRACE_LEVEL_ERROR
  581. default 2 if BNEP_TRACE_LEVEL_WARNING
  582. default 3 if BNEP_TRACE_LEVEL_API
  583. default 4 if BNEP_TRACE_LEVEL_EVENT
  584. default 5 if BNEP_TRACE_LEVEL_DEBUG
  585. default 6 if BNEP_TRACE_LEVEL_VERBOSE
  586. default 2
  587. choice PAN_INITIAL_TRACE_LEVEL
  588. prompt "PAN layer"
  589. default PAN_TRACE_LEVEL_WARNING
  590. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  591. help
  592. Define BT trace level for PAN layer
  593. config PAN_TRACE_LEVEL_NONE
  594. bool "NONE"
  595. config PAN_TRACE_LEVEL_ERROR
  596. bool "ERROR"
  597. config PAN_TRACE_LEVEL_WARNING
  598. bool "WARNING"
  599. config PAN_TRACE_LEVEL_API
  600. bool "API"
  601. config PAN_TRACE_LEVEL_EVENT
  602. bool "EVENT"
  603. config PAN_TRACE_LEVEL_DEBUG
  604. bool "DEBUG"
  605. config PAN_TRACE_LEVEL_VERBOSE
  606. bool "VERBOSE"
  607. endchoice
  608. config PAN_INITIAL_TRACE_LEVEL
  609. int
  610. depends on BLUEDROID_ENABLED
  611. default 0 if PAN_TRACE_LEVEL_NONE
  612. default 1 if PAN_TRACE_LEVEL_ERROR
  613. default 2 if PAN_TRACE_LEVEL_WARNING
  614. default 3 if PAN_TRACE_LEVEL_API
  615. default 4 if PAN_TRACE_LEVEL_EVENT
  616. default 5 if PAN_TRACE_LEVEL_DEBUG
  617. default 6 if PAN_TRACE_LEVEL_VERBOSE
  618. default 2
  619. choice A2D_INITIAL_TRACE_LEVEL
  620. prompt "A2D layer"
  621. default A2D_TRACE_LEVEL_WARNING
  622. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  623. help
  624. Define BT trace level for A2D layer
  625. config A2D_TRACE_LEVEL_NONE
  626. bool "NONE"
  627. config A2D_TRACE_LEVEL_ERROR
  628. bool "ERROR"
  629. config A2D_TRACE_LEVEL_WARNING
  630. bool "WARNING"
  631. config A2D_TRACE_LEVEL_API
  632. bool "API"
  633. config A2D_TRACE_LEVEL_EVENT
  634. bool "EVENT"
  635. config A2D_TRACE_LEVEL_DEBUG
  636. bool "DEBUG"
  637. config A2D_TRACE_LEVEL_VERBOSE
  638. bool "VERBOSE"
  639. endchoice
  640. config A2D_INITIAL_TRACE_LEVEL
  641. int
  642. depends on BLUEDROID_ENABLED
  643. default 0 if A2D_TRACE_LEVEL_NONE
  644. default 1 if A2D_TRACE_LEVEL_ERROR
  645. default 2 if A2D_TRACE_LEVEL_WARNING
  646. default 3 if A2D_TRACE_LEVEL_API
  647. default 4 if A2D_TRACE_LEVEL_EVENT
  648. default 5 if A2D_TRACE_LEVEL_DEBUG
  649. default 6 if A2D_TRACE_LEVEL_VERBOSE
  650. default 2
  651. choice AVDT_INITIAL_TRACE_LEVEL
  652. prompt "AVDT layer"
  653. default AVDT_TRACE_LEVEL_WARNING
  654. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  655. help
  656. Define BT trace level for AVDT layer
  657. config AVDT_TRACE_LEVEL_NONE
  658. bool "NONE"
  659. config AVDT_TRACE_LEVEL_ERROR
  660. bool "ERROR"
  661. config AVDT_TRACE_LEVEL_WARNING
  662. bool "WARNING"
  663. config AVDT_TRACE_LEVEL_API
  664. bool "API"
  665. config AVDT_TRACE_LEVEL_EVENT
  666. bool "EVENT"
  667. config AVDT_TRACE_LEVEL_DEBUG
  668. bool "DEBUG"
  669. config AVDT_TRACE_LEVEL_VERBOSE
  670. bool "VERBOSE"
  671. endchoice
  672. config AVDT_INITIAL_TRACE_LEVEL
  673. int
  674. depends on BLUEDROID_ENABLED
  675. default 0 if AVDT_TRACE_LEVEL_NONE
  676. default 1 if AVDT_TRACE_LEVEL_ERROR
  677. default 2 if AVDT_TRACE_LEVEL_WARNING
  678. default 3 if AVDT_TRACE_LEVEL_API
  679. default 4 if AVDT_TRACE_LEVEL_EVENT
  680. default 5 if AVDT_TRACE_LEVEL_DEBUG
  681. default 6 if AVDT_TRACE_LEVEL_VERBOSE
  682. default 2
  683. choice AVCT_INITIAL_TRACE_LEVEL
  684. prompt "AVCT layer"
  685. default AVCT_TRACE_LEVEL_WARNING
  686. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  687. help
  688. Define BT trace level for AVCT layer
  689. config AVCT_TRACE_LEVEL_NONE
  690. bool "NONE"
  691. config AVCT_TRACE_LEVEL_ERROR
  692. bool "ERROR"
  693. config AVCT_TRACE_LEVEL_WARNING
  694. bool "WARNING"
  695. config AVCT_TRACE_LEVEL_API
  696. bool "API"
  697. config AVCT_TRACE_LEVEL_EVENT
  698. bool "EVENT"
  699. config AVCT_TRACE_LEVEL_DEBUG
  700. bool "DEBUG"
  701. config AVCT_TRACE_LEVEL_VERBOSE
  702. bool "VERBOSE"
  703. endchoice
  704. config AVCT_INITIAL_TRACE_LEVEL
  705. int
  706. depends on BLUEDROID_ENABLED
  707. default 0 if AVCT_TRACE_LEVEL_NONE
  708. default 1 if AVCT_TRACE_LEVEL_ERROR
  709. default 2 if AVCT_TRACE_LEVEL_WARNING
  710. default 3 if AVCT_TRACE_LEVEL_API
  711. default 4 if AVCT_TRACE_LEVEL_EVENT
  712. default 5 if AVCT_TRACE_LEVEL_DEBUG
  713. default 6 if AVCT_TRACE_LEVEL_VERBOSE
  714. default 2
  715. choice AVRC_INITIAL_TRACE_LEVEL
  716. prompt "AVRC layer"
  717. default AVRC_TRACE_LEVEL_WARNING
  718. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  719. help
  720. Define BT trace level for AVRC layer
  721. config AVRC_TRACE_LEVEL_NONE
  722. bool "NONE"
  723. config AVRC_TRACE_LEVEL_ERROR
  724. bool "ERROR"
  725. config AVRC_TRACE_LEVEL_WARNING
  726. bool "WARNING"
  727. config AVRC_TRACE_LEVEL_API
  728. bool "API"
  729. config AVRC_TRACE_LEVEL_EVENT
  730. bool "EVENT"
  731. config AVRC_TRACE_LEVEL_DEBUG
  732. bool "DEBUG"
  733. config AVRC_TRACE_LEVEL_VERBOSE
  734. bool "VERBOSE"
  735. endchoice
  736. config AVRC_INITIAL_TRACE_LEVEL
  737. int
  738. depends on BLUEDROID_ENABLED
  739. default 0 if AVRC_TRACE_LEVEL_NONE
  740. default 1 if AVRC_TRACE_LEVEL_ERROR
  741. default 2 if AVRC_TRACE_LEVEL_WARNING
  742. default 3 if AVRC_TRACE_LEVEL_API
  743. default 4 if AVRC_TRACE_LEVEL_EVENT
  744. default 5 if AVRC_TRACE_LEVEL_DEBUG
  745. default 6 if AVRC_TRACE_LEVEL_VERBOSE
  746. default 2
  747. choice MCA_INITIAL_TRACE_LEVEL
  748. prompt "MCA layer"
  749. default MCA_TRACE_LEVEL_WARNING
  750. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  751. help
  752. Define BT trace level for MCA layer
  753. config MCA_TRACE_LEVEL_NONE
  754. bool "NONE"
  755. config MCA_TRACE_LEVEL_ERROR
  756. bool "ERROR"
  757. config MCA_TRACE_LEVEL_WARNING
  758. bool "WARNING"
  759. config MCA_TRACE_LEVEL_API
  760. bool "API"
  761. config MCA_TRACE_LEVEL_EVENT
  762. bool "EVENT"
  763. config MCA_TRACE_LEVEL_DEBUG
  764. bool "DEBUG"
  765. config MCA_TRACE_LEVEL_VERBOSE
  766. bool "VERBOSE"
  767. endchoice
  768. config MCA_INITIAL_TRACE_LEVEL
  769. int
  770. depends on BLUEDROID_ENABLED
  771. default 0 if MCA_TRACE_LEVEL_NONE
  772. default 1 if MCA_TRACE_LEVEL_ERROR
  773. default 2 if MCA_TRACE_LEVEL_WARNING
  774. default 3 if MCA_TRACE_LEVEL_API
  775. default 4 if MCA_TRACE_LEVEL_EVENT
  776. default 5 if MCA_TRACE_LEVEL_DEBUG
  777. default 6 if MCA_TRACE_LEVEL_VERBOSE
  778. default 2
  779. choice HID_INITIAL_TRACE_LEVEL
  780. prompt "HID layer"
  781. default HID_TRACE_LEVEL_WARNING
  782. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  783. help
  784. Define BT trace level for HID layer
  785. config HID_TRACE_LEVEL_NONE
  786. bool "NONE"
  787. config HID_TRACE_LEVEL_ERROR
  788. bool "ERROR"
  789. config HID_TRACE_LEVEL_WARNING
  790. bool "WARNING"
  791. config HID_TRACE_LEVEL_API
  792. bool "API"
  793. config HID_TRACE_LEVEL_EVENT
  794. bool "EVENT"
  795. config HID_TRACE_LEVEL_DEBUG
  796. bool "DEBUG"
  797. config HID_TRACE_LEVEL_VERBOSE
  798. bool "VERBOSE"
  799. endchoice
  800. config HID_INITIAL_TRACE_LEVEL
  801. int
  802. depends on BLUEDROID_ENABLED
  803. default 0 if HID_TRACE_LEVEL_NONE
  804. default 1 if HID_TRACE_LEVEL_ERROR
  805. default 2 if HID_TRACE_LEVEL_WARNING
  806. default 3 if HID_TRACE_LEVEL_API
  807. default 4 if HID_TRACE_LEVEL_EVENT
  808. default 5 if HID_TRACE_LEVEL_DEBUG
  809. default 6 if HID_TRACE_LEVEL_VERBOSE
  810. default 2
  811. choice APPL_INITIAL_TRACE_LEVEL
  812. prompt "APPL layer"
  813. default APPL_TRACE_LEVEL_WARNING
  814. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  815. help
  816. Define BT trace level for APPL layer
  817. config APPL_TRACE_LEVEL_NONE
  818. bool "NONE"
  819. config APPL_TRACE_LEVEL_ERROR
  820. bool "ERROR"
  821. config APPL_TRACE_LEVEL_WARNING
  822. bool "WARNING"
  823. config APPL_TRACE_LEVEL_API
  824. bool "API"
  825. config APPL_TRACE_LEVEL_EVENT
  826. bool "EVENT"
  827. config APPL_TRACE_LEVEL_DEBUG
  828. bool "DEBUG"
  829. config APPL_TRACE_LEVEL_VERBOSE
  830. bool "VERBOSE"
  831. endchoice
  832. config APPL_INITIAL_TRACE_LEVEL
  833. int
  834. depends on BLUEDROID_ENABLED
  835. default 0 if APPL_TRACE_LEVEL_NONE
  836. default 1 if APPL_TRACE_LEVEL_ERROR
  837. default 2 if APPL_TRACE_LEVEL_WARNING
  838. default 3 if APPL_TRACE_LEVEL_API
  839. default 4 if APPL_TRACE_LEVEL_EVENT
  840. default 5 if APPL_TRACE_LEVEL_DEBUG
  841. default 6 if APPL_TRACE_LEVEL_VERBOSE
  842. default 2
  843. choice GATT_INITIAL_TRACE_LEVEL
  844. prompt "GATT layer"
  845. default GATT_TRACE_LEVEL_WARNING
  846. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  847. help
  848. Define BT trace level for GATT layer
  849. config GATT_TRACE_LEVEL_NONE
  850. bool "NONE"
  851. config GATT_TRACE_LEVEL_ERROR
  852. bool "ERROR"
  853. config GATT_TRACE_LEVEL_WARNING
  854. bool "WARNING"
  855. config GATT_TRACE_LEVEL_API
  856. bool "API"
  857. config GATT_TRACE_LEVEL_EVENT
  858. bool "EVENT"
  859. config GATT_TRACE_LEVEL_DEBUG
  860. bool "DEBUG"
  861. config GATT_TRACE_LEVEL_VERBOSE
  862. bool "VERBOSE"
  863. endchoice
  864. config GATT_INITIAL_TRACE_LEVEL
  865. int
  866. depends on BLUEDROID_ENABLED
  867. default 0 if GATT_TRACE_LEVEL_NONE
  868. default 1 if GATT_TRACE_LEVEL_ERROR
  869. default 2 if GATT_TRACE_LEVEL_WARNING
  870. default 3 if GATT_TRACE_LEVEL_API
  871. default 4 if GATT_TRACE_LEVEL_EVENT
  872. default 5 if GATT_TRACE_LEVEL_DEBUG
  873. default 6 if GATT_TRACE_LEVEL_VERBOSE
  874. default 2
  875. choice SMP_INITIAL_TRACE_LEVEL
  876. prompt "SMP layer"
  877. default SMP_TRACE_LEVEL_WARNING
  878. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  879. help
  880. Define BT trace level for SMP layer
  881. config SMP_TRACE_LEVEL_NONE
  882. bool "NONE"
  883. config SMP_TRACE_LEVEL_ERROR
  884. bool "ERROR"
  885. config SMP_TRACE_LEVEL_WARNING
  886. bool "WARNING"
  887. config SMP_TRACE_LEVEL_API
  888. bool "API"
  889. config SMP_TRACE_LEVEL_EVENT
  890. bool "EVENT"
  891. config SMP_TRACE_LEVEL_DEBUG
  892. bool "DEBUG"
  893. config SMP_TRACE_LEVEL_VERBOSE
  894. bool "VERBOSE"
  895. endchoice
  896. config SMP_INITIAL_TRACE_LEVEL
  897. int
  898. depends on BLUEDROID_ENABLED
  899. default 0 if SMP_TRACE_LEVEL_NONE
  900. default 1 if SMP_TRACE_LEVEL_ERROR
  901. default 2 if SMP_TRACE_LEVEL_WARNING
  902. default 3 if SMP_TRACE_LEVEL_API
  903. default 4 if SMP_TRACE_LEVEL_EVENT
  904. default 5 if SMP_TRACE_LEVEL_DEBUG
  905. default 6 if SMP_TRACE_LEVEL_VERBOSE
  906. default 2
  907. choice BTIF_INITIAL_TRACE_LEVEL
  908. prompt "BTIF layer"
  909. default BTIF_TRACE_LEVEL_WARNING
  910. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  911. help
  912. Define BT trace level for BTIF layer
  913. config BTIF_TRACE_LEVEL_NONE
  914. bool "NONE"
  915. config BTIF_TRACE_LEVEL_ERROR
  916. bool "ERROR"
  917. config BTIF_TRACE_LEVEL_WARNING
  918. bool "WARNING"
  919. config BTIF_TRACE_LEVEL_API
  920. bool "API"
  921. config BTIF_TRACE_LEVEL_EVENT
  922. bool "EVENT"
  923. config BTIF_TRACE_LEVEL_DEBUG
  924. bool "DEBUG"
  925. config BTIF_TRACE_LEVEL_VERBOSE
  926. bool "VERBOSE"
  927. endchoice
  928. config BTIF_INITIAL_TRACE_LEVEL
  929. int
  930. depends on BLUEDROID_ENABLED
  931. default 0 if BTIF_TRACE_LEVEL_NONE
  932. default 1 if BTIF_TRACE_LEVEL_ERROR
  933. default 2 if BTIF_TRACE_LEVEL_WARNING
  934. default 3 if BTIF_TRACE_LEVEL_API
  935. default 4 if BTIF_TRACE_LEVEL_EVENT
  936. default 5 if BTIF_TRACE_LEVEL_DEBUG
  937. default 6 if BTIF_TRACE_LEVEL_VERBOSE
  938. default 2
  939. choice BTC_INITIAL_TRACE_LEVEL
  940. prompt "BTC layer"
  941. default BTC_TRACE_LEVEL_WARNING
  942. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  943. help
  944. Define BT trace level for BTC layer
  945. config BTC_TRACE_LEVEL_NONE
  946. bool "NONE"
  947. config BTC_TRACE_LEVEL_ERROR
  948. bool "ERROR"
  949. config BTC_TRACE_LEVEL_WARNING
  950. bool "WARNING"
  951. config BTC_TRACE_LEVEL_API
  952. bool "API"
  953. config BTC_TRACE_LEVEL_EVENT
  954. bool "EVENT"
  955. config BTC_TRACE_LEVEL_DEBUG
  956. bool "DEBUG"
  957. config BTC_TRACE_LEVEL_VERBOSE
  958. bool "VERBOSE"
  959. endchoice
  960. config BTC_INITIAL_TRACE_LEVEL
  961. int
  962. depends on BLUEDROID_ENABLED
  963. default 0 if BTC_TRACE_LEVEL_NONE
  964. default 1 if BTC_TRACE_LEVEL_ERROR
  965. default 2 if BTC_TRACE_LEVEL_WARNING
  966. default 3 if BTC_TRACE_LEVEL_API
  967. default 4 if BTC_TRACE_LEVEL_EVENT
  968. default 5 if BTC_TRACE_LEVEL_DEBUG
  969. default 6 if BTC_TRACE_LEVEL_VERBOSE
  970. default 2
  971. choice OSI_INITIAL_TRACE_LEVEL
  972. prompt "OSI layer"
  973. default OSI_TRACE_LEVEL_WARNING
  974. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  975. help
  976. Define BT trace level for OSI layer
  977. config OSI_TRACE_LEVEL_NONE
  978. bool "NONE"
  979. config OSI_TRACE_LEVEL_ERROR
  980. bool "ERROR"
  981. config OSI_TRACE_LEVEL_WARNING
  982. bool "WARNING"
  983. config OSI_TRACE_LEVEL_API
  984. bool "API"
  985. config OSI_TRACE_LEVEL_EVENT
  986. bool "EVENT"
  987. config OSI_TRACE_LEVEL_DEBUG
  988. bool "DEBUG"
  989. config OSI_TRACE_LEVEL_VERBOSE
  990. bool "VERBOSE"
  991. endchoice
  992. config OSI_INITIAL_TRACE_LEVEL
  993. int
  994. depends on BLUEDROID_ENABLED
  995. default 0 if OSI_TRACE_LEVEL_NONE
  996. default 1 if OSI_TRACE_LEVEL_ERROR
  997. default 2 if OSI_TRACE_LEVEL_WARNING
  998. default 3 if OSI_TRACE_LEVEL_API
  999. default 4 if OSI_TRACE_LEVEL_EVENT
  1000. default 5 if OSI_TRACE_LEVEL_DEBUG
  1001. default 6 if OSI_TRACE_LEVEL_VERBOSE
  1002. default 2
  1003. choice BLUFI_INITIAL_TRACE_LEVEL
  1004. prompt "BLUFI layer"
  1005. default BLUFI_TRACE_LEVEL_WARNING
  1006. depends on BLUEDROID_ENABLED && !BT_STACK_NO_LOG
  1007. help
  1008. Define BT trace level for BLUFI layer
  1009. config BLUFI_TRACE_LEVEL_NONE
  1010. bool "NONE"
  1011. config BLUFI_TRACE_LEVEL_ERROR
  1012. bool "ERROR"
  1013. config BLUFI_TRACE_LEVEL_WARNING
  1014. bool "WARNING"
  1015. config BLUFI_TRACE_LEVEL_API
  1016. bool "API"
  1017. config BLUFI_TRACE_LEVEL_EVENT
  1018. bool "EVENT"
  1019. config BLUFI_TRACE_LEVEL_DEBUG
  1020. bool "DEBUG"
  1021. config BLUFI_TRACE_LEVEL_VERBOSE
  1022. bool "VERBOSE"
  1023. endchoice
  1024. config BLUFI_INITIAL_TRACE_LEVEL
  1025. int
  1026. depends on BLUEDROID_ENABLED
  1027. default 0 if BLUFI_TRACE_LEVEL_NONE
  1028. default 1 if BLUFI_TRACE_LEVEL_ERROR
  1029. default 2 if BLUFI_TRACE_LEVEL_WARNING
  1030. default 3 if BLUFI_TRACE_LEVEL_API
  1031. default 4 if BLUFI_TRACE_LEVEL_EVENT
  1032. default 5 if BLUFI_TRACE_LEVEL_DEBUG
  1033. default 6 if BLUFI_TRACE_LEVEL_VERBOSE
  1034. default 2
  1035. endmenu #BT DEBUG LOG LEVEL
  1036. config BT_ACL_CONNECTIONS
  1037. int "BT/BLE MAX ACL CONNECTIONS(1~7)"
  1038. depends on BLUEDROID_ENABLED
  1039. range 1 7
  1040. default 4
  1041. help
  1042. Maximum BT/BLE connection count
  1043. config BT_ALLOCATION_FROM_SPIRAM_FIRST
  1044. bool "BT/BLE will first malloc the memory from the PSRAM"
  1045. depends on BLUEDROID_ENABLED
  1046. default n
  1047. help
  1048. This select can save the internal RAM if there have the PSRAM
  1049. config BT_BLE_DYNAMIC_ENV_MEMORY
  1050. bool "Use dynamic memory allocation in BT/BLE stack"
  1051. depends on BLUEDROID_ENABLED
  1052. default n
  1053. help
  1054. This select can make the allocation of memory will become more flexible
  1055. config BLE_HOST_QUEUE_CONGESTION_CHECK
  1056. bool "BLE queue congestion check"
  1057. depends on BLUEDROID_ENABLED
  1058. default n
  1059. help
  1060. When scanning and scan duplicate is not enabled, if there are a lot of adv packets around or application layer
  1061. handling adv packets is slow, it will cause the controller memory to run out. if enabled, adv packets will be
  1062. lost when host queue is congested.
  1063. config SMP_ENABLE
  1064. bool
  1065. depends on BLUEDROID_ENABLED
  1066. default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
  1067. # Memory reserved at start of DRAM for Bluetooth stack
  1068. config BT_RESERVE_DRAM
  1069. hex
  1070. default 0xdb5c if BT_ENABLED
  1071. default 0
  1072. endmenu