From 1e25c373c1040c23fbb11d5661e7f68ebdbcb3c0 Mon Sep 17 00:00:00 2001 From: gengyuchao Date: Wed, 15 Jul 2020 22:44:17 +0800 Subject: [PATCH] Close RMT Debug log temporary --- components/bt/bt.c | 4 +++- components/bt/include/esp_bt.h | 6 +++++- components/bt/lib | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index fff11bce8e..9362720260 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1140,11 +1140,13 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg) #endif btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED; - + +#ifdef RMT_DEBUG_LOG_EN #ifdef CONFIG_ESP32_ENABLE_COREDUMP esp_log_dump_init(btdm_rmt_get_log_buffer_size, btdm_rmt_get_fixed_log_addr); #else #warning "coredump function is not enabled" +#endif #endif return ESP_OK; diff --git a/components/bt/include/esp_bt.h b/components/bt/include/esp_bt.h index 57aec4df9b..6ed3d8d76b 100644 --- a/components/bt/include/esp_bt.h +++ b/components/bt/include/esp_bt.h @@ -462,13 +462,17 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void); void esp_bt_check_need_restart(); +#ifdef RMT_DEBUG_LOG_EN extern uint32_t* btdm_rmt_get_fixed_log_addr(); uint32_t btdm_rmt_get_log_buffer_size(); int btdm_rmt_dbg_printf_to_iram(const char* format, ...); #define RMT_DBG_LOG_ERROR(format, ... ) btdm_rmt_dbg_printf_to_iram(DRAM_STR("E(%d):"format"\n"),esp_log_timestamp(), ##__VA_ARGS__); #define RMT_DBG_LOG_DEBUG(format, ... ) btdm_rmt_dbg_printf_to_iram(DRAM_STR("D(%d):"format"\n"),esp_log_timestamp(), ##__VA_ARGS__); - +#else +#define RMT_DBG_LOG_ERROR(...) +#define RMT_DBG_LOG_DEBUG(...) +#endif #ifdef __cplusplus } diff --git a/components/bt/lib b/components/bt/lib index 077dffd0f2..5dc7c39ff2 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 077dffd0f2bfc96acd40c935a0754e8ecff16960 +Subproject commit 5dc7c39ff2a2d8eb7be792c755b1839c8862064f