Bluetooth: Add Bluetooth UART driver specific debug support

Configuration option BLUETOOTH_DEBUG_UART enables debug support for
Bluetooth UART driver.

Change-Id: I192f380be492df1a52ad212239447b6ee4b50aac
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2015-04-24 11:47:57 +03:00 committed by Anas Nashif
parent f269260b8d
commit ea1f5f3785
2 changed files with 14 additions and 0 deletions

View file

@ -44,6 +44,11 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#if !defined(CONFIG_BLUETOOTH_DEBUG_UART)
#undef BT_DBG
#define BT_DBG(fmt, ...)
#endif
#define H4_HEADER_SIZE 1
#define H4_CMD 0x01

View file

@ -50,6 +50,15 @@ config BLUETOOTH_DEBUG
This option enables Bluetooth debug going to standard
serial console.
config BLUETOOTH_DEBUG_UART
bool
prompt "Bluetooth UART driver debug"
depends on BLUETOOTH_DEBUG
default n
help
This option enables debug support for Bluetooth UART
driver
config BLUETOOTH_UART
bool
prompt "Bluetooth UART driver"