diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 32212fc22..1652a602e 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -8,5 +8,7 @@ if(CONFIG_HAS_STM32LIB) add_subdirectory_ifdef(CONFIG_BT_STM32_IPM stm32wb) add_subdirectory_ifdef(CONFIG_BT_STM32WBA stm32wba) - add_subdirectory_ifdef(CONFIG_BT_STM32WB0 stm32wb0) + if(CONFIG_BT_STM32WB0 OR CONFIG_STM32_RADIO_TIMER) + add_subdirectory(stm32wb0) + endif() endif() diff --git a/lib/stm32wb0/BLE_TransparentMode/STM32_BLE/Target/bleplat.c b/lib/stm32wb0/BLE_TransparentMode/STM32_BLE/Target/bleplat.c index de079d905..404f422ba 100644 --- a/lib/stm32wb0/BLE_TransparentMode/STM32_BLE/Target/bleplat.c +++ b/lib/stm32wb0/BLE_TransparentMode/STM32_BLE/Target/bleplat.c @@ -233,11 +233,6 @@ void BLEPLAT_StopTimer(BLEPLAT_TimerHandleTypeDef *TimerHandle) HAL_RADIO_TIMER_StopVirtualTimer((VTIMER_HandleType*)TimerHandle); } -uint8_t BLEPLAT_SetRadioTimerValue(uint32_t Time, uint8_t EventType, uint8_t CalReq) -{ - return HAL_RADIO_TIMER_SetRadioTimerValue(Time, EventType, CalReq); -} - uint8_t BLEPLAT_ClearRadioTimerValue(void) { return HAL_RADIO_TIMER_ClearRadioTimerValue(); diff --git a/lib/stm32wb0/CMakeLists.txt b/lib/stm32wb0/CMakeLists.txt index dd8e0a5b1..66e4f2230 100644 --- a/lib/stm32wb0/CMakeLists.txt +++ b/lib/stm32wb0/CMakeLists.txt @@ -4,11 +4,16 @@ zephyr_library() +if(CONFIG_STM32_RADIO_TIMER) + zephyr_include_directories(BLE_TransparentMode/System/Modules) + zephyr_library_sources(BLE_TransparentMode/System/Modules/blue_unit_conversion.s) +endif() + +if(CONFIG_BT_STM32WB0) # Set the correct directory zephyr_include_directories(STM32_BLE) zephyr_include_directories(STM32_BLE/stack/include) zephyr_include_directories(BLE_TransparentMode/System/Modules/PKAMGR/Inc) -zephyr_include_directories(BLE_TransparentMode/System/Modules) zephyr_include_directories(BLE_TransparentMode/System/Interfaces) zephyr_include_directories(BLE_TransparentMode/System/Modules/RADIO_utils/Inc) zephyr_include_directories(BLE_TransparentMode/System/Config/Debug_GPIO) @@ -290,7 +295,6 @@ zephyr_library_sources(BLE_TransparentMode/System/Modules/PKAMGR/Src/pka_manager zephyr_library_sources(BLE_TransparentMode/System/Interfaces/hw_aes.c) zephyr_library_sources(BLE_TransparentMode/System/Interfaces/hw_pka.c) zephyr_library_sources(BLE_TransparentMode/System/Interfaces/hw_rng.c) -zephyr_library_sources(BLE_TransparentMode/System/Modules/blue_unit_conversion.s) zephyr_library_sources(BLE_TransparentMode/System/Modules/osal_memcpy.s) zephyr_library_sources(BLE_TransparentMode/STM32_BLE/App/adv_buff_alloc_tiny.c) zephyr_library_sources(BLE_TransparentMode/STM32_BLE/App/transport_layer.c) @@ -302,3 +306,4 @@ zephyr_library_sources(BLE_TransparentMode/STM32_BLE/App/pawr_buff_alloc.c) zephyr_library_sources(STM32_BLE/stack/config/ble_stack_user_cfg.c) zephyr_library_sources(BLE_TransparentMode/STM32_BLE/App/dtm_cmds.c) zephyr_library_sources(BLE_TransparentMode/Core/Src/stm32wb0x_hal_msp.c) +endif() diff --git a/lib/stm32wb0/README.rst b/lib/stm32wb0/README.rst index 2a5148e1f..dbc91a670 100644 --- a/lib/stm32wb0/README.rst +++ b/lib/stm32wb0/README.rst @@ -129,5 +129,7 @@ Patch List: Impacted file: stm32wb0x_hal_msp.c - Removed BLEPLAT_RngGetRandom16 and BLEPLAT_RngGetRandom32 functions: Impacted file: bleplat.c + - Removed BLEPLAT_SetRadioTimerValue function: + Impacted file: bleplat.c - dos2unix applied - trailing white spaces removed