-
Notifications
You must be signed in to change notification settings - Fork 146
lib/stm32: stm32wba: radio temperature calibration activation #283
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
Conversation
lib/stm32wba/CMakeLists.txt
Outdated
) | ||
|
||
# Setting the right Cube define according to the Zephyr configuration | ||
if(NOT CONFIG_BT_STM32WBA_USE_TEMPERATURE_BASED_RADIO_CALIBRATION STREQUAL "y") |
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 add a Zephyr PR to add the definition of this new symbol and points to this PR (through west.yml 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.
The Zephyr PR has been created : zephyrproject-rtos/zephyr#91898
# 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() |
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.
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)
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]>
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