Commit ce83a202 authored by Alessandro Manganaro's avatar Alessandro Manganaro Committed by Erwan Gouriou
Browse files

lib/stm32: update stm32wba to cube version V1.3.1

Update Cube version for STM32WBAxx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.1

Signed-off-by: default avatarAlessandro Manganaro <alessandro.manganaro@st.com>
parent 223d8e37
Loading
Loading
Loading
Loading
+3 −2
Changes for lib/stm32wba/hci/README: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ Origin:
   https://github.com/STMicroelectronics/STM32CubeWBA

Status:
   version v1.2.0
   version v1.3.1

Purpose:
   This library is used on STM32WBA series to port  BLE controller library in
@@ -86,7 +86,7 @@ URL:
   https://github.com/STMicroelectronics/STM32CubeWBA

Commit:
   d2bde9968677fdfd302e2b595239721e3c178e88
   8d1d0ffef7a3a25d8ee8f589a614bc5da65c9300

Maintained-by:
   External
@@ -100,6 +100,7 @@ License Link:
   opensource.org/license/mit

Patch List:
--> please check that the following list is still valid:

	* Disable Temperature based radio calibration:
	  Impacted file: app_conf.h
+8 −10
Changes for lib/stm32wba/hci/app_conf.h: 8 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -42,9 +42,10 @@
#define CFG_TX_POWER                      (0x19) /* 0x19 <=> -0.3 dBm */

/**
 * Define Advertising parameters
 * Definition of public BD Address,
 * when CFG_BD_ADDRESS = 0x000000000000 the BD address is generated based on Unique Device Number.
 */
#define CFG_BD_ADDRESS                    (0x0008E12A1234)
#define CFG_BD_ADDRESS                    (0x0000000000000)

/**
 * Define BD_ADDR type: define proper address. Can only be GAP_PUBLIC_ADDR (0x00) or GAP_STATIC_RANDOM_ADDR (0x01)
@@ -134,6 +135,7 @@
                                     0 | \
                                     0 | \
                                     0 | \
                                     0 | \
                                     0)

/**
@@ -251,9 +253,6 @@ typedef enum

/* USER CODE END Low_Power 1 */

/* Core voltage supply selection, it can be PWR_LDO_SUPPLY or PWR_SMPS_SUPPLY */
#define CFG_CORE_SUPPLY          (PWR_LDO_SUPPLY)

/******************************************************************************
 * RTC
 ******************************************************************************/
@@ -483,13 +482,12 @@ typedef enum
 * MEMORY MANAGER
 ******************************************************************************/

#define CFG_MM_POOL_SIZE                          (4000)
#define CFG_PWR_VOS2_SUPPORTED                    (0)   /* VOS2 power configuration not currently supported with radio activity */
#define CFG_AMM_VIRTUAL_MEMORY_NUMBER             (2u)
#define CFG_MM_POOL_SIZE                                  (4000U)  /* bytes */
#define CFG_AMM_VIRTUAL_MEMORY_NUMBER                     (2U)
#define CFG_AMM_VIRTUAL_STACK_BLE                         (1U)
#define CFG_AMM_VIRTUAL_STACK_BLE_BUFFER_SIZE       (400U)
#define CFG_AMM_VIRTUAL_STACK_BLE_BUFFER_SIZE     (400U)  /* words (32 bits) */
#define CFG_AMM_VIRTUAL_APP_BLE                           (2U)
#define CFG_AMM_VIRTUAL_APP_BLE_BUFFER_SIZE       (200U)
#define CFG_AMM_VIRTUAL_APP_BLE_BUFFER_SIZE     (200U)  /* words (32 bits) */
#define CFG_AMM_POOL_SIZE                                 DIVC(CFG_MM_POOL_SIZE, sizeof (uint32_t)) \
                                                          + (AMM_VIRTUAL_INFO_ELEMENT_SIZE * CFG_AMM_VIRTUAL_MEMORY_NUMBER)

+69 −4
Changes for lib/stm32wba/hci/auto/ble_types.h: 69 added lines, 4 removed lines.
Original line number Diff line number Diff line
/*****************************************************************************
 * @file    ble_types.h
 * @author  MDG
 * @brief   STM32WBA BLE command/event types
 *          Auto-generated file: do not edit!
 *****************************************************************************
 * @attention
 *
 * Copyright (c) 2018-2023 STMicroelectronics.
 * Copyright (c) 2018-2024 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
@@ -702,6 +701,22 @@ typedef __PACKED_STRUCT
  uint8_t Status;
} hci_host_number_of_completed_packets_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
  uint8_t AFH_Channel_Assessment_Mode;
} hci_read_afh_channel_assessment_mode_rp0;

typedef __PACKED_STRUCT
{
  uint8_t AFH_Channel_Assessment_Mode;
} hci_write_afh_channel_assessment_mode_cp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
} hci_write_afh_channel_assessment_mode_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Event_Mask_Page_2[8];
@@ -2284,6 +2299,46 @@ typedef __PACKED_STRUCT
  uint8_t Status;
} hci_le_transmitter_test_v4_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Advertising_Handle;
  uint8_t Change_Reasons;
} hci_le_set_data_related_address_changes_cp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
} hci_le_set_data_related_address_changes_rp0;

typedef __PACKED_STRUCT
{
  uint16_t Subrate_Min;
  uint16_t Subrate_Max;
  uint16_t Max_Latency;
  uint16_t Continuation_Number;
  uint16_t Supervision_Timeout;
} hci_le_set_default_subrate_cp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
} hci_le_set_default_subrate_rp0;

typedef __PACKED_STRUCT
{
  uint16_t Connection_Handle;
  uint16_t Subrate_Min;
  uint16_t Subrate_Max;
  uint16_t Max_Latency;
  uint16_t Continuation_Number;
  uint16_t Supervision_Timeout;
} hci_le_subrate_request_cp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
} hci_le_subrate_request_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Advertising_Handle;
@@ -2389,8 +2444,8 @@ typedef __PACKED_STRUCT
typedef __PACKED_STRUCT
{
  uint8_t Status;
  uint8_t Link_Status[10];
  uint16_t Link_Connection_Handle[10];
  uint8_t Link_Status[22];
  uint16_t Link_Connection_Handle[22];
} aci_hal_get_link_status_v2_rp0;

typedef __PACKED_STRUCT
@@ -4289,6 +4344,16 @@ typedef __PACKED_STRUCT
  uint8_t Encryption;
} hci_le_biginfo_advertising_report_event_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint16_t Subrate_Factor;
  uint16_t Peripheral_Latency;
  uint16_t Continuation_Number;
  uint16_t Supervision_Timeout;
} hci_le_subrate_change_event_rp0;

typedef __PACKED_STRUCT
{
  uint8_t Last_State;
+12 −5
Changes for lib/stm32wba/hci/ble_bufsize.h: 12 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
 *****************************************************************************
 * @attention
 *
 * Copyright (c) 2018-2023 STMicroelectronics.
 * Copyright (c) 2018-2024 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
@@ -49,14 +49,21 @@
 */
#define BLE_MEM_BLOCK_SIZE                   32

#if (BASIC_FEATURES != 0)
#define BLE_MEM_BLOCK_X_PTX(n_link)           0
#else
#define BLE_MEM_BLOCK_X_PTX(n_link)           (n_link)
#endif

#define BLE_MEM_BLOCK_X_TX(mtu) \
          (DIVC((mtu) + 4U, BLE_MEM_BLOCK_SIZE) + 1U)
        (DIVC((mtu) + 4U, BLE_MEM_BLOCK_SIZE) + 1)

#define BLE_MEM_BLOCK_X_RX(mtu, n_link) \
        ((DIVC((mtu) + 4U, BLE_MEM_BLOCK_SIZE) + 2U) * (n_link) + 1)

#define BLE_MEM_BLOCK_X_MTU(mtu, n_link) \
          (BLE_MEM_BLOCK_X_TX(mtu) + BLE_MEM_BLOCK_X_RX(mtu, n_link))
        (BLE_MEM_BLOCK_X_TX(mtu) + BLE_MEM_BLOCK_X_PTX(n_link) + \
         BLE_MEM_BLOCK_X_RX(mtu, n_link))

/*
 * BLE_MBLOCKS_SECURE_CONNECTIONS: minimum number of blocks required for
@@ -92,7 +99,7 @@
#if (BASIC_FEATURES != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES  244   /* Basic Features */
#else
#define BLE_FIXED_BUFFER_SIZE_BYTES  500   /* Full stack */
#define BLE_FIXED_BUFFER_SIZE_BYTES  660   /* Full stack */
#endif

/*
@@ -117,7 +124,7 @@
#define BLE_TOTAL_BUFFER_SIZE(n_link, mblocks_count) \
        (16 + BLE_FIXED_BUFFER_SIZE_BYTES + \
         (BLE_PER_LINK_SIZE_BYTES * (n_link)) + \
           ((BLE_MEM_BLOCK_SIZE + 12) * (mblocks_count)))
         ((BLE_MEM_BLOCK_SIZE + 8) * (mblocks_count)))

/*
 * BLE_TOTAL_BUFFER_SIZE_GATT: this macro returns the amount of memory,
+4 −1
Changes for lib/stm32wba/hci/ble_const.h: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
 *****************************************************************************
 * @attention
 *
 * Copyright (c) 2018-2023 STMicroelectronics.
 * Copyright (c) 2018-2024 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
@@ -29,6 +29,9 @@
#ifndef BASIC_FEATURES
#define BASIC_FEATURES 0
#endif
#ifndef BASIC_PLUS
#define BASIC_PLUS 0
#endif
#ifndef LL_ONLY
#define LL_ONLY 0
#endif
Loading