155
155
*
156
156
* When CFG_LPM_LEVEL is set to:
157
157
* - 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.
160
160
*
161
161
* When CFG_LPM_STDBY_SUPPORTED is set to:
162
+ * - 2 : Stop mode 2 is used as low power mode (if supported by target)
162
163
* - 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.
164
165
*
165
166
******************************************************************************/
166
167
#define CFG_LPM_LEVEL (1)
@@ -214,12 +215,10 @@ typedef enum
214
215
/**
215
216
* Enable or disable LOG over UART in the application.
216
217
* 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.
218
219
*/
219
220
#define CFG_LOG_SUPPORTED (0U)
220
221
221
- /* Usart used by LOG */
222
-
223
222
/* Configure Log display settings */
224
223
#define CFG_LOG_INSERT_COLOR_INSIDE_THE_TRACE (0U)
225
224
#define CFG_LOG_INSERT_TIME_STAMP_INSIDE_THE_TRACE (0U)
@@ -238,6 +237,18 @@ typedef enum
238
237
239
238
/******************************************************************************
240
239
* 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)
241
252
******************************************************************************/
242
253
#define APPLI_CONFIG_LOG_LEVEL LOG_VERBOSE_INFO
243
254
#define APPLI_CONFIG_LOG_REGION (LOG_REGION_ALL_REGIONS)
@@ -267,8 +278,8 @@ typedef enum
267
278
CFG_TASK_BLE_HOST ,
268
279
CFG_TASK_AMM ,
269
280
CFG_TASK_BPKA ,
270
- CFG_TASK_FLASH_MANAGER ,
271
281
CFG_TASK_BLE_TIMER_BCKGND ,
282
+ CFG_TASK_FLASH_MANAGER ,
272
283
/* USER CODE BEGIN CFG_Task_Id_t */
273
284
TASK_BUTTON_1 ,
274
285
TASK_BUTTON_2 ,
@@ -364,26 +375,15 @@ typedef enum
364
375
/******************************************************************************
365
376
* HW RADIO configuration
366
377
******************************************************************************/
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
-
373
378
/* Link Layer uses temperature based calibration (0 --> NO ; 1 --> YES) */
374
379
#define USE_TEMPERATURE_BASED_RADIO_CALIBRATION (0)
375
380
376
381
#define RADIO_INTR_NUM RADIO_IRQn /* 2.4GHz RADIO global interrupt */
377
382
#define RADIO_INTR_PRIO_HIGH (0) /* 2.4GHz RADIO interrupt priority when radio is Active */
378
383
#define RADIO_INTR_PRIO_LOW (5) /* 2.4GHz RADIO interrupt priority when radio is Not Active - Sleep Timer Only */
379
384
380
- #if (USE_RADIO_LOW_ISR == 1 )
381
385
#define RADIO_SW_LOW_INTR_NUM HASH_IRQn /* Selected interrupt vector for 2.4GHz RADIO low ISR */
382
386
#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)
387
387
388
388
#define RCC_INTR_PRIO (1) /* HSERDY and PLL1RDY */
389
389
@@ -397,12 +397,10 @@ typedef enum
397
397
#define CFG_EXTERNAL_PA_ENABLE (0)
398
398
399
399
#define CFG_BLE_AOA_AOD_ENABLE (0)
400
+ #define CFG_RADIO_NUM_OF_ANTENNAS (8) /* Link Layer supported number of antennas */
400
401
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)
406
404
407
405
/* USER CODE BEGIN Radio_Configuration */
408
406
@@ -472,12 +470,12 @@ typedef enum
472
470
#endif /* CFG_DEBUGGER_LEVEL */
473
471
#endif /* CFG_LPM_LEVEL */
474
472
475
- #if (CFG_LPM_STDBY_SUPPORTED == 1 )
473
+ #if (CFG_LPM_STDBY_SUPPORTED != 0 ) && ( CFG_LPM_LEVEL != 0 )
476
474
#if CFG_LOG_SUPPORTED
477
475
#undef CFG_LOG_SUPPORTED
478
476
#define CFG_LOG_SUPPORTED (0)
479
477
#endif /* CFG_LOG_SUPPORTED */
480
- #endif /* CFG_LPM_STDBY_SUPPORTED */
478
+ #endif /* ( CFG_LPM_STDBY_SUPPORTED > 0) && (CFG_LPM_LEVEL != 0) */
481
479
482
480
/* USER CODE BEGIN Defines_2 */
483
481
0 commit comments