Skip to content

Commit e2fbec5

Browse files
author
Zhou Xiao
committed
feat(ble): support ble log spi out for ESP32
1 parent 608ecf6 commit e2fbec5

File tree

1 file changed

+13
-1
lines changed
  • components/bt/controller/esp32

1 file changed

+13
-1
lines changed

components/bt/controller/esp32/bt.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -48,6 +48,10 @@
4848
#include "esp_rom_sys.h"
4949
#include "hli_api.h"
5050

51+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
52+
#include "ble_log/ble_log_spi_out.h"
53+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
54+
5155
#if CONFIG_BT_ENABLED
5256

5357
/* Macro definition
@@ -1686,6 +1690,10 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
16861690
coex_init();
16871691
#endif
16881692

1693+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1694+
ble_log_spi_out_init();
1695+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1696+
16891697
btdm_cfg_mask = btdm_config_mask_load();
16901698

16911699
err = btdm_controller_init(btdm_cfg_mask, cfg);
@@ -1713,6 +1721,10 @@ esp_err_t esp_bt_controller_deinit(void)
17131721
return ESP_ERR_INVALID_STATE;
17141722
}
17151723

1724+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1725+
ble_log_spi_out_deinit();
1726+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1727+
17161728
btdm_controller_deinit();
17171729

17181730
bt_controller_deinit_internal();

0 commit comments

Comments
 (0)