Skip to content

Conversation

rjayles
Copy link
Contributor

@rjayles rjayles commented Jun 6, 2025

This work on the lib/stm32 allows to activate/deactivate the calibration of the radio based on the temperature sensor.
It can be activated/deactivated by a Zephyr config

@erwango erwango requested review from HoZHel, asm5878 and benothmn-st June 9, 2025 15:21
)

# Setting the right Cube define according to the Zephyr configuration
if(NOT CONFIG_BT_STM32WBA_USE_TEMPERATURE_BASED_RADIO_CALIBRATION STREQUAL "y")
Copy link
Member

Choose a reason for hiding this comment

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

Please add a Zephyr PR to add the definition of this new symbol and points to this PR (through west.yml update)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Zephyr PR has been created : zephyrproject-rtos/zephyr#91898

@benothmn-st benothmn-st requested a review from erwango June 20, 2025 13:03
Comment on lines 63 to 66
# Setting the right Cube define according to the Zephyr configuration
if(NOT CONFIG_BT_STM32WBA_USE_TEMPERATURE_BASED_RADIO_CALIBRATION STREQUAL "y")
zephyr_compile_definitions( -DUSE_TEMPERATURE_BASED_RADIO_CALIBRATION=0 )
endif()

Choose a reason for hiding this comment

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

Nit: IMO, the default should be 0 and we should set =1 only if Kconfig is enabled.

Also - but I may be wrong on that - I think this should be simply:
if (NOT CONFIG_BT_STM32WBA_USE_TEMPERATURE_BASED_RADIO_CALIBRATION)

rjayles added 2 commits June 26, 2025 09:34
Add the possibility to change the activation of the temperature
calibration of the radio directly from a Kconfig

Signed-off-by: Romain Jayles <[email protected]>
The temperature calibration is now activable, its activation needs
to be integrated in the library.

Signed-off-by: Romain Jayles <[email protected]>
@erwango erwango merged commit 126cbbe into zephyrproject-rtos:main Jun 26, 2025
2 checks passed
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.

5 participants