mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Init log function in esp_bt_controller_init
This commit is contained in:
@ -45,6 +45,7 @@
|
|||||||
#include "esp_clk.h"
|
#include "esp_clk.h"
|
||||||
#include "esp_coexist_internal.h"
|
#include "esp_coexist_internal.h"
|
||||||
#include "hli_api.h"
|
#include "hli_api.h"
|
||||||
|
#include "esp_core_dump.h"
|
||||||
|
|
||||||
#if CONFIG_BT_ENABLED
|
#if CONFIG_BT_ENABLED
|
||||||
#define CONFIG_BT_HLIGH_LEVEL_INT
|
#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)
|
esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1139,7 +1144,12 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;
|
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;
|
return ESP_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Reference in New Issue
Block a user