mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Init log function in esp_bt_controller_init
This commit is contained in:
parent
2aa718367a
commit
c534295225
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user