| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- # Kconfig - Bluetooth configuration options
- #
- # Copyright (c) 2016 Intel Corporation
- #
- # SPDX-License-Identifier: Apache-2.0
- #
- menu "Nimble Bluetooth stack"
- config PKG_USING_NIMBLE
- bool "Enable NimBLE Bluetooth stack"
- help
- This option enables NimBLE Bluetooth stack.
- if PKG_USING_NIMBLE
-
- config NIMBT_ROLE_PERIPHERAL
- bool "Peripheral Role support"
- select NIMBT_ROLE_BROADCASTER
- default n
- help
- Select this for NimBLE Peripheral role support.
- config NIMBT_ROLE_CENTRAL
- bool "Central Role support"
- select NIMBLE_ROLE_OBSERVER
- default n
- help
- Select this for NimBLE Central role support.
- menu "Broadcaster"
- visible if !NIMBT_ROLE_PERIPHERAL
- config NIMBT_ROLE_BROADCASTER
- bool "Broadcaster Role support"
- default y if !NIMBLE_ROLE_OBSERVER
- default n
- help
- Select this for NimBLE Broadcaster role support.
- endmenu
- menu "Observer"
- visible if !NIMBT_ROLE_CENTRAL
- config NIMBT_ROLE_OBSERVER
- bool "Observer Role support"
- default n
- help
- Select this for NimBLE Observer role support.
- endmenu
-
-
- menu "Common configuration"
-
- endmenu
-
-
- menu "Host stack configuration"
-
- config NIMBLE_HOST
- bool "Enable Host support"
- default y
- help
- Enable support for Host Stack.
-
- endmenu
-
-
- menu "Controller configuretion"
-
- config NIMBLE_CTLR
- bool "Enabel Controller support"
- default n
- help
- Enable support for native controller implementations.
-
- if NIMBLE_CTLR
-
- choice
-
- prompt "BLE device support"
- default NIMBLE_BSP_NRF52
- help
- Select the device controller layer support.
-
- config NIMBLE_BSP_NRF52
- bool "NRF52xxx"
-
- endchoice
-
- endif
-
- endmenu
-
-
- choice
- prompt "Log level"
- default NIMBLE_DEBUG_LEVEL_I
- help
- select the NIMBLE log level
-
- config NIMBLE_DEBUG_LEVEL_O
- bool "OFF"
- config NIMBLE_DEBUG_LEVEL_E
- bool "ERROR"
-
- config NIMBLE_DEBUG_LEVEL_W
- bool "WARING"
-
- config NIMBLE_DEBUG_LEVEL_I
- bool "INFO"
-
- config NIMBLE_DEBUG_LEVEL_D
- bool "DEBUG"
-
- endchoice
-
- config NIMBLE_DEBUG_LEVEL
- # Virtual/hidden option
- int
- default -1 if NIMBLE_DEBUG_LEVEL_O
- default 0 if NIMBLE_DEBUG_LEVEL_E
- default 1 if NIMBLE_DEBUG_LEVEL_W
- default 2 if NIMBLE_DEBUG_LEVEL_I
- default 3 if NIMBLE_DEBUG_LEVEL_D
- default 2
-
- choice
- prompt "Samples"
- default NIMBLE_SAMPLE_DISABLE
- help
- select the NimBLE samples
-
- config NIMBLE_SAMPLE_DISABLE
- bool "Not enable sample"
-
- config NIMBLE_SAMPLE_PER_HR
- bool "peripheral heart-rate"
- select NIMBT_ROLE_PERIPHERAL
- select NIMBLE_CTLR
-
- config NIMBLE_SAMPLE_PER_LED
- bool "peripheral led central"
- select NIMBT_ROLE_PERIPHERAL
- select NIMBLE_CTLR
-
- config NIMBLE_SAMPLE_BEACON
- bool "beacon"
- select NIMBT_ROLE_BROADCASTER
-
- endchoice
-
- endif
- endmenu
|