mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Close RMT Debug log temporary
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Submodule components/bt/lib updated: 077dffd0f2...5dc7c39ff2
Reference in New Issue
Block a user