Init log function in esp_bt_controller_init

This commit is contained in:
gengyuchao 2020-07-14 14:49:27 +08:00 committed by maojianxin
parent 2aa718367a
commit c534295225

View File

@ -45,6 +45,7 @@
#include "esp_clk.h"
#include "esp_coexist_internal.h"
#include "hli_api.h"
#include "esp_core_dump.h"
#if CONFIG_BT_ENABLED
#define CONFIG_BT_HLIGH_LEVEL_INT
@ -1021,6 +1022,10 @@ static void hli_queue_setup_pinned_to_core(int core_id)
}
}
uint32_t get_rmt_log_len(){
return IRAM_LOG_BUFFER_SIZE;
}
esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
{
@ -1140,6 +1145,11 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;
#ifdef CONFIG_ESP32_ENABLE_COREDUMP
esp_log_dump_init(get_rmt_log_len, btdm_rmt_get_fixed_log_addr);
#else
#warning "coredump function is not enabled"
#endif
return ESP_OK;
error: