2525/* Includes ------------------------------------------------------------------*/
2626#include "hw_if.h"
2727#include "utilities_conf.h"
28- #include "blestack.h"
29- /* #include "log_module.h" */
3028
3129/* USER CODE BEGIN Includes */
3230
5149/**
5250 * Define BD_ADDR type: define proper address. Can only be GAP_PUBLIC_ADDR (0x00) or GAP_STATIC_RANDOM_ADDR (0x01)
5351 */
54- #define CFG_BD_ADDRESS_TYPE (GAP_PUBLIC_ADDR)
52+ #define CFG_BD_ADDRESS_DEVICE (GAP_PUBLIC_ADDR)
5553
5654/**
5755 * Define privacy: PRIVACY_DISABLED or PRIVACY_ENABLED
6462 * if CFG_PRIVACY equals PRIVACY_DISABLED, CFG_BLE_ADDRESS_TYPE has 2 allowed values: GAP_PUBLIC_ADDR or GAP_STATIC_RANDOM_ADDR
6563 * if CFG_PRIVACY equals PRIVACY_ENABLED, CFG_BLE_ADDRESS_TYPE has 2 allowed values: GAP_RESOLVABLE_PRIVATE_ADDR or GAP_NON_RESOLVABLE_PRIVATE_ADDR
6664 */
67- #define CFG_BLE_ADDRESS_TYPE (GAP_PUBLIC_ADDR)
65+ #define CFG_BD_ADDRESS_TYPE (GAP_PUBLIC_ADDR)
6866
6967#define ADV_INTERVAL_MIN (0x0080)
7068#define ADV_INTERVAL_MAX (0x00A0)
7674/**
7775 * Define IO Authentication
7876 */
79- #define CFG_BONDING_MODE (1)
80- #define CFG_USED_FIXED_PIN (0) /* 0->fixed pin is used ; 1->No fixed pin used*/
81- #define CFG_FIXED_PIN (111111)
82- #define CFG_ENCRYPTION_KEY_SIZE_MAX (16)
83- #define CFG_ENCRYPTION_KEY_SIZE_MIN (8)
77+ #define CFG_BONDING_MODE (1)
78+ #define CFG_USED_FIXED_PIN (0) /* 0->fixed pin is used ; 1->No fixed pin used*/
79+ #define CFG_FIXED_PIN (111111)
80+ #define CFG_ENCRYPTION_KEY_SIZE_MAX (16)
81+ #define CFG_ENCRYPTION_KEY_SIZE_MIN (8)
8482
8583/**
8684 * Define Input Output capabilities
8785 */
88- #define CFG_IO_CAPABILITY (IO_CAP_DISPLAY_YES_NO)
86+ #define CFG_IO_CAPABILITY (IO_CAP_DISPLAY_YES_NO)
8987
9088/**
9189 * Define Man In The Middle modes
9290 */
93- #define CFG_MITM_PROTECTION (MITM_PROTECTION_REQUIRED)
91+ #define CFG_MITM_PROTECTION (MITM_PROTECTION_REQUIRED)
9492
9593/**
9694 * Define Secure Connections Support
9795 */
98- #define CFG_SC_SUPPORT (SC_PAIRING_OPTIONAL)
96+ #define CFG_SC_SUPPORT (SC_PAIRING_OPTIONAL)
9997
10098/**
10199 * Define Keypress Notification Support
102100 */
103- #define CFG_KEYPRESS_NOTIFICATION_SUPPORT (KEYPRESS_NOT_SUPPORTED)
101+ #define CFG_KEYPRESS_NOTIFICATION_SUPPORT (KEYPRESS_NOT_SUPPORTED)
104102
105103/**
106104* Identity root key used to derive IRK and DHK(Legacy)
233231#define CFG_LPM_LEVEL (2)
234232#define CFG_LPM_STDBY_SUPPORTED (1)
235233
234+ /* Defines time to wake up from standby before radio event to meet timings */
235+ #define CFG_LPM_STDBY_WAKEUP_TIME (1500)
236+
236237/* USER CODE BEGIN Low_Power 0 */
237238
238239/* USER CODE END Low_Power 0 */
@@ -245,6 +246,8 @@ typedef enum
245246{
246247 CFG_LPM_APP ,
247248 CFG_LPM_LOG ,
249+ CFG_LPM_LL_DEEPSLEEP ,
250+ CFG_LPM_LL_HW_RCO_CLBR ,
248251 /* USER CODE BEGIN CFG_LPM_Id_t */
249252
250253 /* USER CODE END CFG_LPM_Id_t */
@@ -287,6 +290,9 @@ typedef enum
287290#define CFG_LOG_INSERT_TIME_STAMP_INSIDE_THE_TRACE (0U)
288291#define CFG_LOG_INSERT_EOL_INSIDE_THE_TRACE (0U)
289292
293+ #define CFG_LOG_TRACE_FIFO_SIZE (4096U)
294+ #define CFG_LOG_TRACE_BUF_SIZE (256U)
295+
290296/* macro ensuring retrocompatibility with old applications */
291297#define APP_DBG LOG_INFO_APP
292298#define APP_DBG_MSG LOG_INFO_APP
@@ -314,14 +320,14 @@ typedef enum
314320 */
315321typedef enum
316322{
317- CFG_TASK_HW_RNG , /* Task linked to chip internal peripheral. */
318- CFG_TASK_LINK_LAYER , /* Tasks linked to Communications Layers. */
323+ CFG_TASK_HW_RNG ,
324+ CFG_TASK_LINK_LAYER ,
319325 CFG_TASK_HCI_ASYNCH_EVT_ID ,
320- CFG_TASK_LINK_LAYER_TEMP_MEAS ,
326+ CFG_TASK_TEMP_MEAS ,
321327 CFG_TASK_BLE_HOST ,
328+ CFG_TASK_AMM ,
322329 CFG_TASK_BPKA ,
323- CFG_TASK_AMM_BCKGND ,
324- CFG_TASK_FLASH_MANAGER_BCKGND ,
330+ CFG_TASK_FLASH_MANAGER ,
325331 CFG_TASK_BLE_TIMER_BCKGND ,
326332 /* USER CODE BEGIN CFG_Task_Id_t */
327333 TASK_BUTTON_1 ,
@@ -351,6 +357,9 @@ typedef enum
351357 CFG_SEQ_PRIO_NBR /* Shall be LAST in the list */
352358} CFG_SEQ_Prio_Id_t ;
353359
360+ /* Sequencer configuration */
361+ #define UTIL_SEQ_CONF_PRIO_NBR CFG_SEQ_PRIO_NBR
362+
354363/**
355364 * This is a bit mapping over 32bits listing all events id supported in the application
356365 */
@@ -362,16 +371,6 @@ typedef enum
362371 /* USER CODE END CFG_IdleEvt_Id_t */
363372} CFG_IdleEvt_Id_t ;
364373
365- /* Sequencer priorities by default */
366- #define CFG_TASK_PRIO_HW_RNG CFG_SEQ_PRIO_0
367- #define CFG_TASK_PRIO_LINK_LAYER CFG_SEQ_PRIO_0
368- /* USER CODE BEGIN TASK_Priority_Define */
369-
370- /* USER CODE END TASK_Priority_Define */
371-
372- /* Used by Sequencer */
373- #define UTIL_SEQ_CONF_PRIO_NBR CFG_SEQ_PRIO_NBR
374-
375374/**
376375 * These are the lists of events id registered to the sequencer
377376 * Each event id shall be in the range [0:31]
@@ -385,6 +384,9 @@ typedef enum
385384} CFG_Event_Id_t ;
386385
387386/**< Events defines */
387+ /* USER CODE BEGIN EVENT_ID_Define */
388+
389+ /* USER CODE END EVENT_ID_Define */
388390
389391/******************************************************************************
390392 * NVM configuration
@@ -464,6 +466,12 @@ typedef enum
464466 */
465467#define CFG_RF_TX_POWER_TABLE_ID (1)
466468
469+ /* Custom LSE sleep clock accuracy to use if both conditions are met:
470+ * - LSE is selected as Link Layer sleep clock source
471+ * - the LSE used is different from the default one.
472+ */
473+ #define CFG_RADIO_LSE_SLEEP_TIMER_CUSTOM_SCA_RANGE (0)
474+
467475/* USER CODE BEGIN Radio_Configuration */
468476
469477/* USER CODE END Radio_Configuration */
0 commit comments