Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # Kconfig - Bluetooth configuration options
  2. #
  3. # Copyright (c) 2016 Intel Corporation
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. menu "Nimble Bluetooth stack"
  8. config PKG_USING_NIMBLE
  9. bool "Enable NimBLE Bluetooth stack"
  10. help
  11. This option enables NimBLE Bluetooth stack.
  12. if PKG_USING_NIMBLE
  13. config NIMBT_ROLE_PERIPHERAL
  14. bool "Peripheral Role support"
  15. select NIMBT_ROLE_BROADCASTER
  16. default n
  17. help
  18. Select this for NimBLE Peripheral role support.
  19. config NIMBT_ROLE_CENTRAL
  20. bool "Central Role support"
  21. select NIMBLE_ROLE_OBSERVER
  22. default n
  23. help
  24. Select this for NimBLE Central role support.
  25. menu "Broadcaster"
  26. visible if !NIMBT_ROLE_PERIPHERAL
  27. config NIMBT_ROLE_BROADCASTER
  28. bool "Broadcaster Role support"
  29. default y if !NIMBLE_ROLE_OBSERVER
  30. default n
  31. help
  32. Select this for NimBLE Broadcaster role support.
  33. endmenu
  34. menu "Observer"
  35. visible if !NIMBT_ROLE_CENTRAL
  36. config NIMBT_ROLE_OBSERVER
  37. bool "Observer Role support"
  38. default n
  39. help
  40. Select this for NimBLE Observer role support.
  41. endmenu
  42. menu "Common configuration"
  43. endmenu
  44. menu "Host stack configuration"
  45. config NIMBLE_HOST
  46. bool "Enable Host support"
  47. default y
  48. help
  49. Enable support for Host Stack.
  50. endmenu
  51. menu "Controller configuretion"
  52. config NIMBLE_CTLR
  53. bool "Enabel Controller support"
  54. default n
  55. help
  56. Enable support for native controller implementations.
  57. if NIMBLE_CTLR
  58. choice
  59. prompt "BLE device support"
  60. default NIMBLE_BSP_NRF52
  61. help
  62. Select the device controller layer support.
  63. config NIMBLE_BSP_NRF52
  64. bool "NRF52xxx"
  65. endchoice
  66. endif
  67. endmenu
  68. choice
  69. prompt "Log level"
  70. default NIMBLE_DEBUG_LEVEL_I
  71. help
  72. select the NIMBLE log level
  73. config NIMBLE_DEBUG_LEVEL_O
  74. bool "OFF"
  75. config NIMBLE_DEBUG_LEVEL_E
  76. bool "ERROR"
  77. config NIMBLE_DEBUG_LEVEL_W
  78. bool "WARING"
  79. config NIMBLE_DEBUG_LEVEL_I
  80. bool "INFO"
  81. config NIMBLE_DEBUG_LEVEL_D
  82. bool "DEBUG"
  83. endchoice
  84. config NIMBLE_DEBUG_LEVEL
  85. # Virtual/hidden option
  86. int
  87. default -1 if NIMBLE_DEBUG_LEVEL_O
  88. default 0 if NIMBLE_DEBUG_LEVEL_E
  89. default 1 if NIMBLE_DEBUG_LEVEL_W
  90. default 2 if NIMBLE_DEBUG_LEVEL_I
  91. default 3 if NIMBLE_DEBUG_LEVEL_D
  92. default 2
  93. choice
  94. prompt "Samples"
  95. default NIMBLE_SAMPLE_DISABLE
  96. help
  97. select the NimBLE samples
  98. config NIMBLE_SAMPLE_DISABLE
  99. bool "Not enable sample"
  100. config NIMBLE_SAMPLE_PER_HR
  101. bool "peripheral heart-rate"
  102. select NIMBT_ROLE_PERIPHERAL
  103. select NIMBLE_CTLR
  104. config NIMBLE_SAMPLE_PER_LED
  105. bool "peripheral led central"
  106. select NIMBT_ROLE_PERIPHERAL
  107. select NIMBLE_CTLR
  108. config NIMBLE_SAMPLE_BEACON
  109. bool "beacon"
  110. select NIMBT_ROLE_BROADCASTER
  111. endchoice
  112. endif
  113. endmenu