Skip to content

Commit 8b13c22

Browse files
asm5878fabiobaltieri
authored andcommitted
lib/stm32: update stm32wba to cube version V1.5.0
Update Cube version for STM32WBAxx series on https://github.com/STMicroelectronics from version v1.4.1 to version v1.5.0 Signed-off-by: Alessandro Manganaro <[email protected]>
1 parent fb6cc34 commit 8b13c22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1433
-756
lines changed

lib/stm32wba/BLE_TransparentMode/Core/Inc/app_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ extern "C"{
3030
#include <stdio.h>
3131
#include <stdlib.h>
3232
#include <stdarg.h>
33+
#include <inttypes.h>
3334

3435
#include "app_conf.h"
3536
#include "hw.h"

lib/stm32wba/BLE_TransparentMode/Core/Inc/app_conf.h

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
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

lib/stm32wba/BLE_TransparentMode/Core/Inc/app_entry.h

Lines changed: 0 additions & 95 deletions
This file was deleted.

lib/stm32wba/BLE_TransparentMode/Core/Inc/main.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ extern "C" {
2929
/* Includes ------------------------------------------------------------------*/
3030
#include "stm32wbaxx_hal.h"
3131
#include "app_conf.h"
32-
/* #include "app_entry.h" */
3332
#include "app_common.h"
34-
/* #include "app_debug.h" */
33+
34+
#include "stm32wbaxx_ll_icache.h"
35+
#include "stm32wbaxx_ll_tim.h"
36+
#include "stm32wbaxx_ll_bus.h"
37+
#include "stm32wbaxx_ll_cortex.h"
38+
#include "stm32wbaxx_ll_rcc.h"
39+
#include "stm32wbaxx_ll_system.h"
40+
#include "stm32wbaxx_ll_utils.h"
41+
#include "stm32wbaxx_ll_pwr.h"
42+
#include "stm32wbaxx_ll_gpio.h"
43+
#include "stm32wbaxx_ll_dma.h"
44+
45+
#include "stm32wbaxx_ll_exti.h"
3546

3647
/* Private includes ----------------------------------------------------------*/
3748
/* USER CODE BEGIN Includes */

0 commit comments

Comments
 (0)