drivers/nble: Add debug option for Nordic RPC

This debug option enables debug of Nordic RPC.

Change-Id: I2e963f10ed6407b836e1572673244cb0187227d2
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-02-16 15:16:41 +02:00 committed by Gerrit Code Review
commit 017394c2a6
3 changed files with 18 additions and 1 deletions

View file

@ -103,6 +103,13 @@ config NBLE_DEBUG_GAP
Generic Access Profile (GAP) in the interfaces to the
Nordic chip.
config NBLE_DEBUG_RPC
bool "NBLE RPC debug"
default n
help
This option enables debug for RPC interface to the Nordic
Bluetooth LE chip.
endif # BLUETOOTH_DEBUG
config NBLE_UART_ON_DEV_NAME

View file

@ -33,6 +33,11 @@
#include "rpc_functions_to_quark.h"
#if !defined(CONFIG_NBLE_DEBUG_RPC)
#undef BT_DBG
#define BT_DBG(fmt, ...)
#endif
/* Build the list of prototypes and check that list are made only of matching
* signatures
*/
@ -176,7 +181,7 @@ static void (*m_fct_s_b_b_p[])(void *structure, void *buffer1, uint8_t length1,
/* Build debug table to help development with this "robust" macro stuff */
#if defined(CONFIG_BLUETOOTH_DEBUG)
#if defined(CONFIG_NBLE_DEBUG_RPC)
#undef FN_SIG_NONE
#undef FN_SIG_S

View file

@ -23,6 +23,11 @@
#include "rpc_functions_to_ble_core.h"
#if !defined(CONFIG_NBLE_DEBUG_RPC)
#undef BT_DBG
#define BT_DBG(fmt, ...)
#endif
/* Build the functions exposed */
/* Define the functions identifiers per signature */
#define FN_SIG_NONE(__fn) fn_index_##__fn,