mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
Close RMT Debug log temporary
This commit is contained in:
@@ -1141,10 +1141,12 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
|||||||
|
|
||||||
btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;
|
btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;
|
||||||
|
|
||||||
|
#ifdef RMT_DEBUG_LOG_EN
|
||||||
#ifdef CONFIG_ESP32_ENABLE_COREDUMP
|
#ifdef CONFIG_ESP32_ENABLE_COREDUMP
|
||||||
esp_log_dump_init(btdm_rmt_get_log_buffer_size, btdm_rmt_get_fixed_log_addr);
|
esp_log_dump_init(btdm_rmt_get_log_buffer_size, btdm_rmt_get_fixed_log_addr);
|
||||||
#else
|
#else
|
||||||
#warning "coredump function is not enabled"
|
#warning "coredump function is not enabled"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
|
||||||
|
@@ -462,13 +462,17 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void);
|
|||||||
|
|
||||||
void esp_bt_check_need_restart();
|
void esp_bt_check_need_restart();
|
||||||
|
|
||||||
|
#ifdef RMT_DEBUG_LOG_EN
|
||||||
extern uint32_t* btdm_rmt_get_fixed_log_addr();
|
extern uint32_t* btdm_rmt_get_fixed_log_addr();
|
||||||
uint32_t btdm_rmt_get_log_buffer_size();
|
uint32_t btdm_rmt_get_log_buffer_size();
|
||||||
int btdm_rmt_dbg_printf_to_iram(const char* format, ...);
|
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_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__);
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Submodule components/bt/lib updated: 077dffd0f2...5dc7c39ff2
Reference in New Issue
Block a user