mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 11:03:11 +00:00
11268d8bfb
- feat(soc_caps): Enable BT Classic and BLE in esp32s31 - Add git submodule for ESP32-S31 bt controller lib files - changed sdkconfig.defaults and README for Bluetooth Classic examples - change(docs): Added vendor HCI documentations for ESP32-S31 - change(Bluedroid): Adapt to ESP32-S31 due to some API differences on Bluetooth controller from ESP32 - change(bt): Modify CMakeLists.txt to support the Bluetooth dual-mode architecture on ESP32-S31 - change(bt): Add ECC P-192 functions to tinycrypt
57 lines
2.2 KiB
CMake
57 lines
2.2 KiB
CMake
set(porting_btdm_srcs "")
|
|
set(porting_btdm_include_dirs "")
|
|
|
|
# btdm_common
|
|
file(GLOB_RECURSE BTDM_COMMON_SRCS "controller/btdm_common/src/*.c")
|
|
list(APPEND porting_btdm_srcs ${BTDM_COMMON_SRCS})
|
|
list(APPEND porting_btdm_include_dirs "${CMAKE_CURRENT_SOURCE_DIR}/controller/btdm_common/include")
|
|
|
|
# ble
|
|
if(CONFIG_BT_CTRL_BLE_ENABLE)
|
|
list(APPEND porting_btdm_include_dirs "${CMAKE_CURRENT_SOURCE_DIR}/controller/ble/include")
|
|
file(GLOB_RECURSE BLE_SRCS "controller/ble/src/*.c")
|
|
list(APPEND porting_btdm_srcs ${BLE_SRCS})
|
|
endif()
|
|
|
|
# bredr
|
|
if(CONFIG_BT_CTRL_BREDR_ENABLE)
|
|
list(APPEND porting_btdm_include_dirs "${CMAKE_CURRENT_SOURCE_DIR}/controller/bredr/include")
|
|
file(GLOB_RECURSE BREDR_SRCS "controller/bredr/src/*.c")
|
|
list(APPEND porting_btdm_srcs ${BREDR_SRCS})
|
|
endif()
|
|
|
|
# transport
|
|
file(GLOB_RECURSE TRANSPORT_SRCS "transport/src/*.c")
|
|
list(APPEND porting_btdm_srcs ${TRANSPORT_SRCS})
|
|
list(APPEND porting_btdm_include_dirs "${CMAKE_CURRENT_SOURCE_DIR}/transport/include")
|
|
if(CONFIG_BT_CTRL_HCI_INTERFACE_USE_RAM)
|
|
if(CONFIG_BT_NIMBLE_ENABLED)
|
|
list(APPEND porting_btdm_srcs
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/vhci/hci_driver_nimble.c"
|
|
)
|
|
else()
|
|
list(APPEND porting_btdm_srcs
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/vhci/hci_driver_standard.c"
|
|
)
|
|
endif()
|
|
elseif(CONFIG_BT_CTRL_HCI_INTERFACE_USE_UART)
|
|
list(APPEND porting_btdm_srcs
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/common/hci_driver_util.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/common/hci_driver_h4.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/common/hci_driver_mem.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/uart/hci_driver_uart_config.c"
|
|
)
|
|
if(CONFIG_BT_CTRL_UART_HCI_NO_DMA_MODE)
|
|
list(APPEND porting_btdm_srcs
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/uart/hci_driver_uart.c"
|
|
)
|
|
else()
|
|
list(APPEND porting_btdm_srcs
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/transport/driver/uart/hci_driver_uart_dma.c"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
set(porting_btdm_srcs ${porting_btdm_srcs} PARENT_SCOPE)
|
|
set(porting_btdm_include_dirs ${porting_btdm_include_dirs} PARENT_SCOPE)
|