Skip to content

Commit e41f619

Browse files
author
Zhou Xiao
committed
feat(ble): support ble log spi out for ESP32-C3 and ESP32-S3
1 parent e2fbec5 commit e41f619

File tree

1 file changed

+12
-1
lines changed
  • components/bt/controller/esp32c3

1 file changed

+12
-1
lines changed

components/bt/controller/esp32c3/bt.c

Lines changed: 12 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
*/
@@ -49,6 +49,9 @@
4949
#else //CONFIG_IDF_TARGET_ESP32S3
5050
#include "esp32s3/rom/rom_layout.h"
5151
#endif
52+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
53+
#include "ble_log/ble_log_spi_out.h"
54+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
5255
#if CONFIG_BT_ENABLED
5356

5457
/* Macro definition
@@ -1446,6 +1449,10 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
14461449
coex_init();
14471450
#endif
14481451

1452+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1453+
ble_log_spi_out_init();
1454+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1455+
14491456
periph_module_enable(PERIPH_BT_MODULE);
14501457
periph_module_reset(PERIPH_BT_MODULE);
14511458

@@ -1474,6 +1481,10 @@ esp_err_t esp_bt_controller_deinit(void)
14741481
return ESP_ERR_INVALID_STATE;
14751482
}
14761483

1484+
#if CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1485+
ble_log_spi_out_deinit();
1486+
#endif // CONFIG_BT_BLE_LOG_SPI_OUT_ENABLED
1487+
14771488
btdm_controller_deinit();
14781489

14791490
bt_controller_deinit_internal();

0 commit comments

Comments
 (0)