Skip to content

Conversation

vtardy-st
Copy link
Contributor

It's a draft version to retrieve a first review

Add 802.15.4 driver integration
In the lib\stm32wba, 'BLE_TransparentMode' folder has been renamed 'ble'.
Add CMakeLists.txt file in /ble folder
Add IEEE802154 folder

@vtardy-st vtardy-st force-pushed the stm32wbax_802154_driver_support branch 4 times, most recently from 539e08e to 6631ae3 Compare September 9, 2025 13:46
@vtardy-st vtardy-st marked this pull request as ready for review September 10, 2025 08:07
@vtardy-st vtardy-st force-pushed the stm32wbax_802154_driver_support branch from 6631ae3 to ebe3cdc Compare September 12, 2025 08:08
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.

For clarity, please split your changes in several commits:

  • Initial commit(s) that make(s) required modifications prior the introduction of the new library (files moving and sp on)
  • Dedicated commit that only introduces new lib + required CMake changes

Last, I don't see changes to the library update scripts. I really think this should be added to help maintainance

What is the plan for library update ?

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with removing this file, but modifications to the existing files should be done in a dedicated commit with proper justification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is revert because it requires rework

Copy link
Member

Choose a reason for hiding this comment

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

Modifications to the existing files should be done in a dedicated commit to ease the review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is revert because it requires rework

rename ble folder and add/change CMakeList

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
Add 802.15.4 driver integration

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
@vtardy-st vtardy-st force-pushed the stm32wbax_802154_driver_support branch from ebe3cdc to 89b8400 Compare September 15, 2025 08:34
@vtardy-st
Copy link
Contributor Author

Changes included in this PR have been splitted in 2 commits :

  • first commit related to ble folder renaming and change/add CMakeList in prevision of IEEE802154 integration
  • second commit related to IEEE802154 files + libs

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.

In the first commit, a lot of files are moved in but not updated in README or update script file. These files should be updated. This is mandatory for further maintenance.

Comment on lines +6 to +7
zephyr_include_directories(ble/stack/include)
zephyr_include_directories(ble/stack/include/auto)
Copy link
Member

Choose a reason for hiding this comment

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

Please make use of indentation in CMakeLists file. Apply everywhere

Comment on lines +2 to +4
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(ll_sys)
Copy link
Member

Choose a reason for hiding this comment

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

Is this file really useful ?

@@ -0,0 +1,11 @@
# Copyright (c) 2024 STMicroelectronics
Copy link
Member

Choose a reason for hiding this comment

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

2025

@@ -0,0 +1,19 @@

Copy link
Member

Choose a reason for hiding this comment

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

Add header with license and copyright in each file

zephyr_sources(src/ll_sys_cs.c)
zephyr_sources(src/ll_sys_dp_slp.c)
zephyr_sources(src/ll_sys_intf.c)
zephyr_sources(src/ll_sys_startup.c)
Copy link
Member

Choose a reason for hiding this comment

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

Missing end of line at the end of file.
To be fixed in each new file

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.

Sorry for the review split in multiple comments, this will be the last one.

I'm not opposed to reshuffling the CMakeLists.txt, and this probably welcome given the introduction of a new library and the fact that some components are shared between the 2.
Though, I think current proposal goes to far in this direction and makes things quite difficult to follow.
I'd propose to limit to 3/4 files instead of the 6 proposed currently (in my view, lesser is better, but I may miss technical constraints)

Comment on lines +2 to +4
if (CONFIG_BT_STM32WBA)
zephyr_compile_definitions( -DBLE )
endif()
Copy link
Member

Choose a reason for hiding this comment

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

I don't think there is an interest to put this down in this file as zephyr_compile_definitions isn't scoped and will apply to the whole library anyway.

Comment on lines 103 to 106

add_subdirectory(STM32_WPAN)

add_subdirectory_ifdef(CONFIG_BT_STM32WBA ble)
Copy link
Member

Choose a reason for hiding this comment

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

Putting these instructions after the linking instructions doesn't feel quite clean.

Comment on lines +10 to +14
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR})

zephyr_include_directories(inc)
zephyr_include_directories(../ll_cmd_lib/inc)
zephyr_include_directories(../ll_cmd_lib/inc/_40nm_reg_files)
Copy link
Member

Choose a reason for hiding this comment

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

Despite the addition of multiple CMakeLists.txt files, we're ending up including files from outside components.
This is probably a sign we've been to deep into CMakeLists file splitting.

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