Nimble: Enable optional debug output via RTT

This allows better debugging of the bluetooth stack.
This commit is contained in:
Christoph Honal 2022-03-21 14:07:21 +01:00 committed by JF
parent 118adb96cf
commit 33a7a6a095
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#include "modlog/modlog.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_WARN(...) MODLOG_WARN(4, __VA_ARGS__)
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__)

View File

@ -20,7 +20,8 @@
#ifndef 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/log.h"