Skip to content

Commit 6fc0e3c

Browse files
authored
Merge branch 'espressif:release/v5.4' into release/v5.4
2 parents f009391 + 0ba5356 commit 6fc0e3c

File tree

244 files changed

+4549
-1637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+4549
-1637
lines changed

components/bt/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ if(CONFIG_BT_ENABLED)
9191
endif()
9292
set(ldscripts "linker_esp32c2.lf")
9393
else()
94+
list(APPEND srcs "controller/${target_name}/ble.c")
9495
list(APPEND ldscripts "linker_esp_ble_controller.lf")
9596
endif()
9697

@@ -131,12 +132,9 @@ if(CONFIG_BT_ENABLED)
131132
"common/osi/osi.c"
132133
"common/osi/semaphore.c"
133134
"porting/mem/bt_osi_mem.c"
135+
"common/ble_log/ble_log_spi_out.c"
134136
)
135137

136-
if(CONFIG_BT_LE_CONTROLLER_LOG_SPI_OUT_ENABLED)
137-
list(APPEND srcs "common/ble_log/ble_log_spi_out.c")
138-
endif()
139-
140138
# Host Bluedroid
141139
if(CONFIG_BT_BLUEDROID_ENABLED)
142140

@@ -862,7 +860,7 @@ idf_component_register(SRCS "${srcs}"
862860
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
863861
REQUIRES esp_timer esp_wifi
864862
PRIV_REQUIRES nvs_flash soc esp_pm esp_phy esp_coex mbedtls esp_driver_uart vfs esp_ringbuf
865-
esp_driver_spi
863+
esp_driver_spi esp_driver_gpio
866864
LDFRAGMENTS "${ldscripts}")
867865

868866
if(CONFIG_BT_ENABLED)
@@ -889,6 +887,9 @@ if(CONFIG_BT_ENABLED)
889887
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
890888
endif()
891889
elseif(CONFIG_BT_CONTROLLER_ENABLED)
890+
if(CONFIG_BT_LE_CONTROLLER_LOG_WRAP_PANIC_HANDLER_ENABLE)
891+
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_panic_handler")
892+
endif()
892893
if(CONFIG_IDF_TARGET_ESP32C6)
893894
add_prebuilt_library(libble_app
894895
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c6/esp32c6-bt-lib/esp32c6/libble_app.a")

components/bt/common/Kconfig.in

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,58 @@ config BT_ALARM_MAX_NUM
44
help
55
This option decides the maximum number of alarms which
66
could be used by Bluetooth host.
7+
8+
config BT_BLE_LOG_SPI_OUT_ENABLED
9+
bool "Output ble logs to SPI bus (Experimental)"
10+
default n
11+
help
12+
Output ble logs to SPI bus
13+
14+
config BT_BLE_LOG_SPI_OUT_QUEUE_SIZE
15+
int "Number of ble log async SPI output queues"
16+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
17+
default 4
18+
help
19+
The number of ble log async SPI output queues
20+
21+
config BT_BLE_LOG_SPI_OUT_TRANS_BUF_SIZE
22+
int "Size of ble log async SPI output transaction buffer size"
23+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
24+
default 2048
25+
help
26+
The size of ble log async SPI output transaction buffer size
27+
28+
config BT_BLE_LOG_SPI_OUT_MOSI_IO_NUM
29+
int "GPIO number of SPI MOSI"
30+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
31+
default 0
32+
help
33+
GPIO number of SPI MOSI
34+
35+
config BT_BLE_LOG_SPI_OUT_SCLK_IO_NUM
36+
int "GPIO number of SPI SCLK"
37+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
38+
default 1
39+
help
40+
GPIO number of SPI SCLK
41+
42+
config BT_BLE_LOG_SPI_OUT_CS_IO_NUM
43+
int "GPIO number of SPI CS"
44+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
45+
default 2
46+
help
47+
GPIO number of SPI CS
48+
49+
config BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
50+
bool "Enable ble log & logic analyzer log time sync"
51+
depends on BT_BLE_LOG_SPI_OUT_ENABLED
52+
default y
53+
help
54+
Enable ble log & logic analyzer log time sync
55+
56+
config BT_BLE_LOG_SPI_OUT_SYNC_IO_NUM
57+
int "GPIO number of SYNC IO"
58+
depends on BT_BLE_LOG_SPI_OUT_TS_SYNC_ENABLED
59+
default 3
60+
help
61+
GPIO number of SYNC IO

0 commit comments

Comments
 (0)