-
Notifications
You must be signed in to change notification settings - Fork 143
lib: stm32wba: 802.15.4 driver integration #311
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
base: main
Are you sure you want to change the base?
lib: stm32wba: 802.15.4 driver integration #311
Conversation
539e08e
to
6631ae3
Compare
6631ae3
to
ebe3cdc
Compare
There was a problem hiding this 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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
ebe3cdc
to
89b8400
Compare
Changes included in this PR have been splitted in 2 commits :
|
There was a problem hiding this 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.
zephyr_include_directories(ble/stack/include) | ||
zephyr_include_directories(ble/stack/include/auto) |
There was a problem hiding this comment.
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
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
add_subdirectory(ll_sys) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 @@ | |||
|
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this 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)
if (CONFIG_BT_STM32WBA) | ||
zephyr_compile_definitions( -DBLE ) | ||
endif() |
There was a problem hiding this comment.
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.
lib/stm32wba/CMakeLists.txt
Outdated
|
||
add_subdirectory(STM32_WPAN) | ||
|
||
add_subdirectory_ifdef(CONFIG_BT_STM32WBA ble) |
There was a problem hiding this comment.
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.
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) |
There was a problem hiding this comment.
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.
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