Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add BLE transport layer for stm32wbaxx #356

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions hal_st/middlewares/ble_middleware/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
add_library(hal_st.ble_middleware STATIC)
emil_build_for(hal_st.ble_middleware TARGET_MCU_FAMILY stm32wbxx PREREQUISITE_BOOL HALST_STANDALONE)
emil_build_for(hal_st.ble_middleware
TARGET_MCU_FAMILY stm32wbxx
TARGET_MCU_FAMILY stm32wbaxx
PREREQUISITE_BOOL HALST_STANDALONE)

target_include_directories(hal_st.ble_middleware PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../../..>"
Expand All @@ -11,6 +14,8 @@ target_link_libraries(hal_st.ble_middleware PUBLIC
services.ble
services.util
services.tracer
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbaxx>:${CMAKE_CURRENT_LIST_DIR}/../STM32_WPAN/STM32CubeWBA/ble/stack/lib/stm32wba_ble_stack_basic.a>
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbaxx>:${CMAKE_CURRENT_LIST_DIR}/../STM32_WPAN/STM32CubeWBA/link_layer/ll_cmd_lib/lib/LinkLayer_BLE_Basic_lib.a>
)

target_sources(hal_st.ble_middleware PRIVATE
Expand All @@ -27,8 +32,10 @@ target_sources(hal_st.ble_middleware PRIVATE
GattServerSt.cpp
GattServerSt.hpp
HciEventObserver.hpp
SystemTransportLayer.cpp
SystemTransportLayer.hpp
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbxx>:SystemTransportLayerWb.cpp>
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbxx>:SystemTransportLayerWb.hpp>
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbaxx>:SystemTransportLayerWba.cpp>
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbaxx>:SystemTransportLayerWba.hpp>
TracingGapCentralSt.cpp
TracingGapCentralSt.hpp
TracingGapPeripheralSt.cpp
Expand All @@ -37,6 +44,6 @@ target_sources(hal_st.ble_middleware PRIVATE
TracingGattClientSt.hpp
TracingGattServerSt.cpp
TracingGattServerSt.hpp
TracingSystemTransportLayer.cpp
TracingSystemTransportLayer.hpp
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbxx>:TracingSystemTransportLayerWb.cpp>
$<$<STREQUAL:${TARGET_MCU_FAMILY},stm32wbxx>:TracingSystemTransportLayerWb.hpp>
)
Loading
Loading