File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
BLE_TransparentMode/Core/Inc Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,9 @@ typedef enum
376
376
* HW RADIO configuration
377
377
******************************************************************************/
378
378
/* Link Layer uses temperature based calibration (0 --> NO ; 1 --> YES) */
379
- #define USE_TEMPERATURE_BASED_RADIO_CALIBRATION (0)
379
+ #ifndef USE_TEMPERATURE_BASED_RADIO_CALIBRATION
380
+ #define USE_TEMPERATURE_BASED_RADIO_CALIBRATION (1)
381
+ #endif
380
382
381
383
#define RADIO_INTR_NUM RADIO_IRQn /* 2.4GHz RADIO global interrupt */
382
384
#define RADIO_INTR_PRIO_HIGH (0) /* 2.4GHz RADIO interrupt priority when radio is Active */
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ set_target_properties(
60
60
stm32wba_ble_lib PROPERTIES IMPORTED_LOCATION ${STM32WBA_BLE_LIB_DIR} /stm32wba_ble_stack_llo.a
61
61
)
62
62
63
+ # Setting the right Cube define according to the Zephyr configuration
64
+ if (NOT CONFIG_BT_STM32WBA_USE_TEMPERATURE_BASED_RADIO_CALIBRATION STREQUAL "y" )
65
+ zephyr_compile_definitions ( -DUSE_TEMPERATURE_BASED_RADIO_CALIBRATION=0 )
66
+ endif ()
67
+
63
68
# Selecting the proper version of link layer lib according the soc
64
69
# Checking all the soc variants and not simply relying on board name
65
70
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Patch List:
109
109
* Enabled extended advertising in CFG_BLE_OPTIONS:
110
110
Impacted file: app_conf.h
111
111
112
- * Disable Temperature based radio calibration:
112
+ * Allowing Temperature based radio calibration configuration to be externally overwritten :
113
113
Impacted file: app_conf.h
114
114
115
115
* Increased 2.4GHz RADIO low ISR priority:
You can’t perform that action at this time.
0 commit comments