drivers/nble: Enable NBLE GAP debug
Use NBLE_DEBUG_GAP to enabled / disable GAP NBLE debug. Change-Id: Iefbb18e697d523137a101df00b02d46e209e7f14 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
92cd5c9529
commit
fb68b8e780
2 changed files with 14 additions and 1 deletions
|
@ -95,6 +95,14 @@ config BLUETOOTH_DEBUG_GATT
|
||||||
This option enables debug support for the Bluetooth
|
This option enables debug support for the Bluetooth
|
||||||
Generic Attribute Profile (GATT).
|
Generic Attribute Profile (GATT).
|
||||||
|
|
||||||
|
config NBLE_DEBUG_GAP
|
||||||
|
bool "NBLE Generic Access Profile (GAP) debug"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This option enables debug support for the Bluetooth
|
||||||
|
Generic Access Profile (GAP) in the interfaces to the
|
||||||
|
Nordic chip.
|
||||||
|
|
||||||
endif # BLUETOOTH_DEBUG
|
endif # BLUETOOTH_DEBUG
|
||||||
|
|
||||||
config NBLE_UART_ON_DEV_NAME
|
config NBLE_UART_ON_DEV_NAME
|
||||||
|
|
|
@ -28,6 +28,11 @@
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include "rpc.h"
|
#include "rpc.h"
|
||||||
|
|
||||||
|
#if !defined(CONFIG_NBLE_DEBUG_GAP)
|
||||||
|
#undef BT_DBG
|
||||||
|
#define BT_DBG(fmt, ...)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NBLE_SWDIO_PIN 6
|
#define NBLE_SWDIO_PIN 6
|
||||||
#define NBLE_RESET_PIN NBLE_SWDIO_PIN
|
#define NBLE_RESET_PIN NBLE_SWDIO_PIN
|
||||||
#define NBLE_BTWAKE_PIN 5
|
#define NBLE_BTWAKE_PIN 5
|
||||||
|
@ -38,7 +43,7 @@ static bt_le_scan_cb_t *scan_dev_found_cb;
|
||||||
/* Local Bluetooth LE Device Address */
|
/* Local Bluetooth LE Device Address */
|
||||||
bt_addr_le_t nble_bdaddr;
|
bt_addr_le_t nble_bdaddr;
|
||||||
|
|
||||||
#if defined(CONFIG_BLUETOOTH_DEBUG)
|
#if defined(CONFIG_NBLE_DEBUG_GAP)
|
||||||
static const char *bt_addr_le_str(const bt_addr_le_t *addr)
|
static const char *bt_addr_le_str(const bt_addr_le_t *addr)
|
||||||
{
|
{
|
||||||
static char str[BT_ADDR_LE_STR_LEN];
|
static char str[BT_ADDR_LE_STR_LEN];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue