6565#define CFG_BLE_OPTIONS (0 | \
6666 0 | \
6767 0 | \
68- BLE_OPTIONS_EXTENDED_ADV | \
68+ BLE_OPTIONS_EXTENDED_ADV | \
6969 0 | \
70+ BLE_OPTIONS_GATT_CACHING | \
7071 0 | \
7172 0 | \
72- 0 | \
73- 0)
73+ BLE_OPTIONS_ENHANCED_ATT)
7474
7575/**
7676 * Maximum number of simultaneous connections and advertising that the device will support.
@@ -196,9 +196,6 @@ typedef enum
196196/******************************************************************************
197197 * RTC
198198 ******************************************************************************/
199- #define RTC_N_PREDIV_S (10)
200- #define RTC_PREDIV_S ((1<<RTC_N_PREDIV_S)-1)
201- #define RTC_PREDIV_A ((1<<(15-RTC_N_PREDIV_S))-1)
202199
203200/* USER CODE BEGIN RTC */
204201
@@ -221,6 +218,8 @@ typedef enum
221218 */
222219#define CFG_LOG_SUPPORTED (0U)
223220
221+ /* Usart used by LOG */
222+
224223/* Configure Log display settings */
225224#define CFG_LOG_INSERT_COLOR_INSIDE_THE_TRACE (0U)
226225#define CFG_LOG_INSERT_TIME_STAMP_INSIDE_THE_TRACE (0U)
@@ -241,7 +240,7 @@ typedef enum
241240 * Configure Log level for Application
242241 ******************************************************************************/
243242#define APPLI_CONFIG_LOG_LEVEL LOG_VERBOSE_INFO
244-
243+ #define APPLI_CONFIG_LOG_REGION (LOG_REGION_ALL_REGIONS)
245244/* USER CODE BEGIN Log_level */
246245
247246/* USER CODE END Log_level */
@@ -320,7 +319,7 @@ typedef enum
320319 * NVM configuration
321320 ******************************************************************************/
322321
323- #define CFG_SNVMA_START_SECTOR_ID (FLASH_PAGE_NB - 2u)
322+ #define CFG_SNVMA_START_SECTOR_ID ((FLASH_SIZE / FLASH_PAGE_SIZE) - 2u)
324323
325324#define CFG_SNVMA_START_ADDRESS (FLASH_BASE + (FLASH_PAGE_SIZE * (CFG_SNVMA_START_SECTOR_ID)))
326325
@@ -347,20 +346,20 @@ typedef enum
347346 * - 2 : Debugger available in low power mode.
348347 *
349348 ******************************************************************************/
350- #define CFG_DEBUGGER_LEVEL (2)
349+ #define CFG_DEBUGGER_LEVEL (2)
351350
352351/******************************************************************************
353352 * RealTime GPIO debug module configuration
354353 ******************************************************************************/
355354
356- #define CFG_RT_DEBUG_GPIO_MODULE (0)
357- #define CFG_RT_DEBUG_DTB (0)
355+ #define CFG_RT_DEBUG_GPIO_MODULE (0)
356+ #define CFG_RT_DEBUG_DTB (0)
358357
359358/******************************************************************************
360359 * System Clock Manager module configuration
361360 ******************************************************************************/
362361
363- #define CFG_SCM_SUPPORTED (1)
362+ #define CFG_SCM_SUPPORTED (1)
364363
365364/******************************************************************************
366365 * HW RADIO configuration
@@ -391,9 +390,14 @@ typedef enum
391390/* RF TX power table ID selection:
392391 * 0 -> RF TX output level from -20 dBm to +10 dBm
393392 * 1 -> RF TX output level from -20 dBm to +3 dBm
393+ * 2 -> RF TX output level at +20 dBm with an external PA
394394 */
395395#define CFG_RF_TX_POWER_TABLE_ID (0)
396396
397+ #define CFG_EXTERNAL_PA_ENABLE (0)
398+
399+ #define CFG_BLE_AOA_AOD_ENABLE (0)
400+
397401/* Custom LSE sleep clock accuracy to use if both conditions are met:
398402 * - LSE is selected as Link Layer sleep clock source
399403 * - the LSE used is different from the default one.
@@ -425,8 +429,8 @@ typedef enum
425429#define CFG_AMM_VIRTUAL_STACK_BLE_BUFFER_SIZE (400U) /* words (32 bits) */
426430#define CFG_AMM_VIRTUAL_APP_BLE (2U)
427431#define CFG_AMM_VIRTUAL_APP_BLE_BUFFER_SIZE (200U) /* words (32 bits) */
428- #define CFG_AMM_POOL_SIZE DIVC(CFG_MM_POOL_SIZE, sizeof (uint32_t)) \
429- + (AMM_VIRTUAL_INFO_ELEMENT_SIZE * CFG_AMM_VIRTUAL_MEMORY_NUMBER)
432+ #define CFG_AMM_POOL_SIZE ( DIVC(CFG_MM_POOL_SIZE, sizeof (uint32_t)) \
433+ + (AMM_VIRTUAL_INFO_ELEMENT_SIZE * CFG_AMM_VIRTUAL_MEMORY_NUMBER) )
430434
431435/* USER CODE BEGIN MEMORY_MANAGER_Configuration */
432436
0 commit comments