Nimble: Enable optional debug output via RTT
This allows better debugging of the bluetooth stack.
This commit is contained in:
parent
118adb96cf
commit
33a7a6a095
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
#include "modlog/modlog.h"
|
#include "modlog/modlog.h"
|
||||||
#include "log_common/log_common.h"
|
#include "log_common/log_common.h"
|
||||||
|
|
||||||
#define BLE_HS_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
|
#define BLE_HS_LOG_DEBUG(...) MODLOG_DEBUG(4, __VA_ARGS__)
|
||||||
#define BLE_HS_LOG_INFO(...) MODLOG_INFO(4, __VA_ARGS__)
|
#define BLE_HS_LOG_INFO(...) MODLOG_INFO(4, __VA_ARGS__)
|
||||||
#define BLE_HS_LOG_WARN(...) MODLOG_WARN(4, __VA_ARGS__)
|
#define BLE_HS_LOG_WARN(...) MODLOG_WARN(4, __VA_ARGS__)
|
||||||
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__)
|
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__)
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
#ifndef H_MODLOG_
|
#ifndef H_MODLOG_
|
||||||
#define H_MODLOG_
|
#define H_MODLOG_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "SEGGER_RTT.h"
|
||||||
|
#define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
|
|
||||||
#include "log_common/log_common.h"
|
#include "log_common/log_common.h"
|
||||||
#include "log/log.h"
|
#include "log/log.h"
|
||||||
|
|
Loading…
Reference in a new issue