155155 * 
156156 *  When CFG_LPM_LEVEL is set to: 
157157 *   - 0 : Low Power Mode is not activated, RUN mode will be used. 
158-  *   - 1 : Low power active, the one  selected with CFG_LPM_STDBY_SUPPORTED 
159-  *   - 2 : In addition, force to disable modules  to reach lowest power figures. 
158+  *   - 1 : Low power active, mode  selected with CFG_LPM_STDBY_SUPPORTED 
159+  *   - 2 : In addition log and debug are disabled  to reach lowest power figures. 
160160 * 
161161 * When CFG_LPM_STDBY_SUPPORTED is set to: 
162+  *   - 2 : Stop mode 2 is used as low power mode (if supported by target) 
162163 *   - 1 : Standby is used as low power mode. 
163-  *   - 0 : Standby is not used, so stop  mode 1 is used as low power mode. 
164+  *   - 0 : Stop  mode 1 is used as low power mode. 
164165 * 
165166 ******************************************************************************/ 
166167#define  CFG_LPM_LEVEL             (1)
@@ -214,12 +215,10 @@ typedef enum
214215/** 
215216 * Enable or disable LOG over UART in the application. 
216217 * Low power level(CFG_LPM_LEVEL) above 1 will disable LOG. 
217-  * Standby low power mode(CFG_LPM_STDBY_SUPPORTED) will disable LOG. 
218+  * Standby low power mode(CFG_LPM_STDBY_SUPPORTED) above 0  will disable LOG. 
218219 */ 
219220#define  CFG_LOG_SUPPORTED            (0U)
220221
221- /* Usart used by LOG */ 
222- 
223222/* Configure Log display settings */ 
224223#define  CFG_LOG_INSERT_COLOR_INSIDE_THE_TRACE        (0U)
225224#define  CFG_LOG_INSERT_TIME_STAMP_INSIDE_THE_TRACE   (0U)
@@ -238,6 +237,18 @@ typedef enum
238237
239238/****************************************************************************** 
240239 * Configure Log level for Application 
240+  * 
241+  * APPLI_CONFIG_LOG_LEVEL can be any value of the Log_Verbose_Level_t enum. 
242+  * 
243+  * APPLI_CONFIG_LOG_REGION can either be : 
244+  * - LOG_REGION_ALL_REGIONS to enable all regions 
245+  * or 
246+  * - One or several specific regions (any value except LOG_REGION_ALL_REGIONS) 
247+  *   from the Log_Region_t enum and matching the mask value. 
248+  * 
249+  *   For example, to enable both LOG_REGION_BLE and LOG_REGION_APP, 
250+  *   the value assigned to the define is : 
251+  *   (1U << LOG_REGION_BLE | 1U << LOG_REGION_APP) 
241252 ******************************************************************************/ 
242253#define  APPLI_CONFIG_LOG_LEVEL       LOG_VERBOSE_INFO
243254#define  APPLI_CONFIG_LOG_REGION      (LOG_REGION_ALL_REGIONS)
@@ -267,8 +278,8 @@ typedef enum
267278  CFG_TASK_BLE_HOST ,
268279  CFG_TASK_AMM ,
269280  CFG_TASK_BPKA ,
270-   CFG_TASK_FLASH_MANAGER ,
271281  CFG_TASK_BLE_TIMER_BCKGND ,
282+   CFG_TASK_FLASH_MANAGER ,
272283  /* USER CODE BEGIN CFG_Task_Id_t */ 
273284  TASK_BUTTON_1 ,
274285  TASK_BUTTON_2 ,
@@ -364,26 +375,15 @@ typedef enum
364375/****************************************************************************** 
365376 * HW RADIO configuration 
366377 ******************************************************************************/ 
367- /* Do not modify - must be 1 */ 
368- #define  USE_RADIO_LOW_ISR                    (1)
369- 
370- /* Do not modify - must be 1 */ 
371- #define  NEXT_EVENT_SCHEDULING_FROM_ISR       (1)
372- 
373378/* Link Layer uses temperature based calibration (0 --> NO ; 1 --> YES) */ 
374379#define  USE_TEMPERATURE_BASED_RADIO_CALIBRATION   (0)
375380
376381#define  RADIO_INTR_NUM                       RADIO_IRQn     /* 2.4GHz RADIO global interrupt */ 
377382#define  RADIO_INTR_PRIO_HIGH                 (0)            /* 2.4GHz RADIO interrupt priority when radio is Active */ 
378383#define  RADIO_INTR_PRIO_LOW                  (5)            /* 2.4GHz RADIO interrupt priority when radio is Not Active - Sleep Timer Only */ 
379384
380- #if  (USE_RADIO_LOW_ISR  ==  1 )
381385#define  RADIO_SW_LOW_INTR_NUM                HASH_IRQn      /* Selected interrupt vector for 2.4GHz RADIO low ISR */ 
382386#define  RADIO_SW_LOW_INTR_PRIO               (14)           /* 2.4GHz RADIO low ISR priority */ 
383- #endif  /* USE_RADIO_LOW_ISR */ 
384- 
385- /* Link Layer supported number of antennas */ 
386- #define  RADIO_NUM_OF_ANTENNAS                (4)
387387
388388#define  RCC_INTR_PRIO                        (1)           /* HSERDY and PLL1RDY */ 
389389
@@ -397,12 +397,10 @@ typedef enum
397397#define  CFG_EXTERNAL_PA_ENABLE               (0)
398398
399399#define  CFG_BLE_AOA_AOD_ENABLE               (0)
400+ #define  CFG_RADIO_NUM_OF_ANTENNAS            (8)           /* Link Layer supported number of antennas */ 
400401
401- /* Custom LSE sleep clock accuracy to use if both conditions are met: 
402-  * - LSE is selected as Link Layer sleep clock source 
403-  * - the LSE used is different from the default one. 
404-  */ 
405- #define  CFG_RADIO_LSE_SLEEP_TIMER_CUSTOM_SCA_RANGE  (0)
402+ /* Radio sleep clock LSE accuracy configuration */ 
403+ #define  CFG_RADIO_LSE_SLEEP_TIMER_CUSTOM_SCA_RANGE  (0x00)
406404
407405/* USER CODE BEGIN Radio_Configuration */ 
408406
@@ -472,12 +470,12 @@ typedef enum
472470  #endif  /* CFG_DEBUGGER_LEVEL */ 
473471#endif  /* CFG_LPM_LEVEL */ 
474472
475- #if  (CFG_LPM_STDBY_SUPPORTED  ==   1 )
473+ #if  (CFG_LPM_STDBY_SUPPORTED  !=   0 )  &&  ( CFG_LPM_LEVEL   !=   0 )
476474  #if  CFG_LOG_SUPPORTED 
477475    #undef   CFG_LOG_SUPPORTED
478476    #define  CFG_LOG_SUPPORTED        (0)
479477  #endif  /* CFG_LOG_SUPPORTED */ 
480- #endif  /* CFG_LPM_STDBY_SUPPORTED */ 
478+ #endif  /* ( CFG_LPM_STDBY_SUPPORTED > 0) && (CFG_LPM_LEVEL != 0)  */ 
481479
482480/* USER CODE BEGIN Defines_2 */ 
483481
0 commit comments