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

lib: stm32wb0: Add BLE controller implementation #236

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

HoZHel
Copy link

@HoZHel HoZHel commented Oct 10, 2024

Provide BLE controller implementation for STM32WB0x SOCs.

Provide the required license (ST ULTIMATE LIBERTY) to use the binary BLOB.

Modify the yaml file to support fetching the STM32WB0 binary stack library
for Bluetooth implementation.

Provide the required license (ST ULTIMATE LIBERTY) to use the binary BLOB.

Modify the yaml file to support fetching the STM32WB0 binary stack library
for Bluetooth implementation.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A README file summing up the origin of the files added would be required.
Similar to https://github.com/zephyrproject-rtos/hal_stm32/blob/main/lib/stm32wb/hci/README.

Also, to simplify follow up maintenance, I'd expect these files could be updated automatically using existing script. This is not a blocker, but it would be required to have it eventually.

@@ -70,4 +70,5 @@ if(CONFIG_HAS_STM32LIB)
target_link_libraries(app PUBLIC stm32wba_ll_lib)

endif()
add_subdirectory_ifdef(CONFIG_BT_STM32WB0 stm32wb0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but we need consistency across vraious libs.
Hence I'd expect the same to be done fro WBA and WB

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get this comment well. Should I do something?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're adding a sub section to handle WB0 case, which is indeed a good idea.
But in that case, for consistency, it would be nice to do the same on other series (in a dedicated commit).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

zephyr_library_sources(BLE_TransparentMode/Core/Src/stm32wb0x_hal_msp.c)

else()
zephyr_compile_definitions(-DCFG_BLE_NUM_RADIO_TASKS=0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you expect cases where CONFIG_BT_STM32WB0=y and CONFIG_BT=n ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you're right. I'll fix it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@HoZHel
Copy link
Author

HoZHel commented Oct 11, 2024

A README file summing up the origin of the files added would be required. Similar to https://github.com/zephyrproject-rtos/hal_stm32/blob/main/lib/stm32wb/hci/README.

Ok, I'll add it.

Also, to simplify follow up maintenance, I'd expect these files could be updated automatically using existing script. This is not a blocker, but it would be required to have it eventually.

I will update this file in the future.

Provide BLE controller implementation for STM32WB0x SOCs.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
Add dedicated CMakeLists.txt for STM32WB and STM32WBA to have consistency
with STM32WB0 approach.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
@HoZHel
Copy link
Author

HoZHel commented Oct 16, 2024

A README file summing up the origin of the files added would be required. Similar to https://github.com/zephyrproject-rtos/hal_stm32/blob/main/lib/stm32wb/hci/README.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants