mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
fix(ble): fixed controller log api call for ESP32-C3/ESP32-S3
This commit is contained in:
@@ -599,6 +599,7 @@ menu "Controller debug log Options (Experimental)"
|
|||||||
depends on BT_CTRL_LE_LOG_EN
|
depends on BT_CTRL_LE_LOG_EN
|
||||||
depends on !BT_CTRL_LE_LOG_DUMP_ONLY
|
depends on !BT_CTRL_LE_LOG_DUMP_ONLY
|
||||||
select BT_BLE_LOG_SPI_OUT_ENABLED
|
select BT_BLE_LOG_SPI_OUT_ENABLED
|
||||||
|
select BT_BLE_LOG_SPI_OUT_LL_ENABLED
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Output ble controller logs to SPI bus
|
Output ble controller logs to SPI bus
|
||||||
|
@@ -551,7 +551,7 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b
|
|||||||
#if CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
|
#if CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
|
||||||
static IRAM_ATTR void esp_bt_controller_spi_log_interface(uint32_t len, const uint8_t *addr, bool end)
|
static IRAM_ATTR void esp_bt_controller_spi_log_interface(uint32_t len, const uint8_t *addr, bool end)
|
||||||
{
|
{
|
||||||
ble_log_spi_out_write(BLE_LOG_SPI_OUT_SOURCE_ESP_LEGACY, addr, len);
|
ble_log_spi_out_ll_write(len, addr, 0, NULL, 0);
|
||||||
}
|
}
|
||||||
#endif // CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
|
#endif // CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user