Skip to content

Commit b80128f

Browse files
authored
Merge pull request #14626 from jeromecoutant/DEV_STM32WB_1_11_1
STM32WB update drivers version to CUBE V1.11.1
2 parents 3bd40d3 + 6f9bc14 commit b80128f

File tree

207 files changed

+44459
-4043
lines changed

Some content is hidden

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

207 files changed

+44459
-4043
lines changed

connectivity/drivers/ble/FEATURE_BLE/TARGET_STM32WB/STM32Cube_FW/ble_bufsize.h

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
* @file ble_bufsize.h
3-
* @author MCD Application Team
3+
* @author MCD
44
* @brief Definition of BLE stack buffers size
55
*****************************************************************************
66
* @attention
@@ -25,11 +25,6 @@
2525
*/
2626
#define BLE_DEFAULT_ATT_MTU 23
2727

28-
/*
29-
* BLE_DEFAULT_MAX_ATT_MTU: maximum supported ATT MTU size.
30-
*/
31-
#define BLE_DEFAULT_MAX_ATT_MTU 158
32-
3328
/*
3429
* BLE_DEFAULT_MAX_ATT_SIZE: maximum attribute size.
3530
*/
@@ -81,13 +76,6 @@
8176
((pw) + MAX(BLE_MEM_BLOCK_X_MTU(mtu, n_link), \
8277
BLE_MBLOCKS_SECURE_CONNECTIONS))
8378

84-
/*
85-
* BLE_DEFAULT_MBLOCKS_COUNT: default memory blocks count
86-
*/
87-
#define BLE_DEFAULT_MBLOCKS_COUNT(n_link) \
88-
BLE_MBLOCKS_CALC(BLE_DEFAULT_PREP_WRITE_LIST_SIZE, \
89-
BLE_DEFAULT_MAX_ATT_MTU, n_link)
90-
9179
/*
9280
* BLE_FIXED_BUFFER_SIZE_BYTES:
9381
* A part of the RAM, is dinamically allocated by initilizing all the pointers
@@ -102,31 +90,39 @@
10290
* - a part, that may be considered "fixed", i.e. independent from the above
10391
* mentioned parameters.
10492
*/
105-
#if (SLAVE_ONLY == 0) && (LL_ONLY == 0)
106-
#define BLE_FIXED_BUFFER_SIZE_BYTES 6960 /* Full stack */
107-
#elif SLAVE_ONLY == 0
108-
#define BLE_FIXED_BUFFER_SIZE_BYTES 6256 /* LL only */
93+
#if (BEACON_ONLY != 0)
94+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6212 /* Beacon only */
95+
#elif (LL_ONLY != 0)
96+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6272 /* LL only */
97+
#elif (SLAVE_ONLY != 0)
98+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6712 /* Peripheral only */
99+
#elif (BASIC_FEATURES != 0)
100+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6972 /* Basic Features */
109101
#else
110-
#define BLE_FIXED_BUFFER_SIZE_BYTES 6696 /* Slave only */
102+
#define BLE_FIXED_BUFFER_SIZE_BYTES 7240 /* Full stack */
111103
#endif
112104

113105
/*
114106
* BLE_PER_LINK_SIZE_BYTES: additional memory size used per link
115107
*/
116-
#if (SLAVE_ONLY == 0) && (LL_ONLY == 0)
117-
#define BLE_PER_LINK_SIZE_BYTES 380 /* Full stack */
118-
#elif SLAVE_ONLY == 0
108+
#if (BEACON_ONLY != 0)
109+
#define BLE_PER_LINK_SIZE_BYTES 148 /* Beacon only */
110+
#elif (LL_ONLY != 0)
119111
#define BLE_PER_LINK_SIZE_BYTES 196 /* LL only */
112+
#elif (SLAVE_ONLY != 0)
113+
#define BLE_PER_LINK_SIZE_BYTES 332 /* Peripheral only */
114+
#elif (BASIC_FEATURES != 0)
115+
#define BLE_PER_LINK_SIZE_BYTES 332 /* Basic Features */
120116
#else
121-
#define BLE_PER_LINK_SIZE_BYTES 332 /* Slave only */
117+
#define BLE_PER_LINK_SIZE_BYTES 384 /* Full stack */
122118
#endif
123119

124120
/*
125121
* BLE_TOTAL_BUFFER_SIZE: this macro returns the amount of memory, in bytes,
126122
* needed for the storage of data structures (except GATT database elements)
127123
* whose size depends on the number of supported connections.
128124
*
129-
* @param num_links: Maximum number of simultaneous connections that the device
125+
* @param n_link: Maximum number of simultaneous connections that the device
130126
* will support. Valid values are from 1 to 8.
131127
*
132128
* @param mblocks_count: Number of memory blocks allocated for packets.
@@ -158,4 +154,4 @@
158154
(40 * (num_gatt_attributes)) + (48 * (num_gatt_services)))
159155

160156

161-
#endif /* ! BLE_BUFSIZE_H__ */
157+
#endif /* BLE_BUFSIZE_H__ */

connectivity/drivers/ble/FEATURE_BLE/TARGET_STM32WB/STM32Cube_FW/mbox_def.h

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extern "C" {
104104
{
105105
uint8_t *cmdrsp_buffer;
106106
uint8_t *m0cmd_buffer;
107-
} MB_LldBleTable_t;
107+
} MB_BleLldTable_t;
108108

109109
typedef struct
110110
{
@@ -157,9 +157,32 @@ extern "C" {
157157
MB_Mac_802_15_4_t *p_mac_802_15_4_table;
158158
MB_ZigbeeTable_t *p_zigbee_table;
159159
MB_LldTestsTable_t *p_lld_tests_table;
160-
MB_LldBleTable_t *p_lld_ble_table;
160+
MB_BleLldTable_t *p_ble_lld_table;
161161
} MB_RefTable_t;
162162

163+
/**
164+
* This table shall be used only in the case the CPU2 runs the FUS.
165+
* It is used by the command SHCI_GetWirelessFwInfo()
166+
*/
167+
typedef struct
168+
{
169+
uint32_t DeviceInfoTableState;
170+
uint8_t Reserved1;
171+
uint8_t LastFusActiveState;
172+
uint8_t LastWirelessStackState;
173+
uint8_t CurrentWirelessStackType;
174+
uint32_t SafeBootVersion;
175+
uint32_t FusVersion;
176+
uint32_t FusMemorySize;
177+
uint32_t WirelessStackVersion;
178+
uint32_t WirelessStackMemorySize;
179+
uint32_t WirelessFirmwareBleInfo;
180+
uint32_t WirelessFirmwareThreadInfo;
181+
uint32_t Reserved2;
182+
uint64_t UID64;
183+
uint16_t DeviceId;
184+
} MB_FUS_DeviceInfoTable_t ;
185+
163186
#ifdef __cplusplus
164187
}
165188
#endif
@@ -201,12 +224,12 @@ extern "C" {
201224
* | |
202225
* |<---HW_IPCC_BLE_EVENT_CHANNEL--------------------|
203226
* | |
204-
* | (LLD BLE) |
205-
* |----HW_IPCC_LLD_BLE_CMD_CHANNEL----------------->|
227+
* | (BLE LLD) |
228+
* |----HW_IPCC_BLE_LLD_CMD_CHANNEL----------------->|
206229
* | |
207-
* |<---HW_IPCC_LLD_BLE_RSP_CHANNEL------------------|
230+
* |<---HW_IPCC_BLE_LLD_RSP_CHANNEL------------------|
208231
* | |
209-
* |<---HW_IPCC_LLD_BLE_M0_CMD_CHANNEL---------------|
232+
* |<---HW_IPCC_BLE_LLD_M0_CMD_CHANNEL---------------|
210233
* | |
211234
* | (MAC) |
212235
* |----HW_IPCC_MAC_802_15_4_CMD_RSP_CHANNEL-------->|
@@ -235,8 +258,8 @@ extern "C" {
235258
#define HW_IPCC_MM_RELEASE_BUFFER_CHANNEL LL_IPCC_CHANNEL_4
236259
#define HW_IPCC_THREAD_CLI_CMD_CHANNEL LL_IPCC_CHANNEL_5
237260
#define HW_IPCC_LLDTESTS_CLI_CMD_CHANNEL LL_IPCC_CHANNEL_5
238-
#define HW_IPCC_LLD_BLE_CLI_CMD_CHANNEL LL_IPCC_CHANNEL_5
239-
#define HW_IPCC_LLD_BLE_CMD_CHANNEL LL_IPCC_CHANNEL_5
261+
#define HW_IPCC_BLE_LLD_CLI_CMD_CHANNEL LL_IPCC_CHANNEL_5
262+
#define HW_IPCC_BLE_LLD_CMD_CHANNEL LL_IPCC_CHANNEL_5
240263
#define HW_IPCC_HCI_ACL_DATA_CHANNEL LL_IPCC_CHANNEL_6
241264

242265
/** CPU2 */
@@ -246,12 +269,12 @@ extern "C" {
246269
#define HW_IPCC_ZIGBEE_APPLI_NOTIF_ACK_CHANNEL LL_IPCC_CHANNEL_3
247270
#define HW_IPCC_MAC_802_15_4_NOTIFICATION_ACK_CHANNEL LL_IPCC_CHANNEL_3
248271
#define HW_IPCC_LLDTESTS_M0_CMD_CHANNEL LL_IPCC_CHANNEL_3
249-
#define HW_IPCC_LLD_BLE_M0_CMD_CHANNEL LL_IPCC_CHANNEL_3
272+
#define HW_IPCC_BLE_LLD_M0_CMD_CHANNEL LL_IPCC_CHANNEL_3
250273
#define HW_IPCC_TRACES_CHANNEL LL_IPCC_CHANNEL_4
251274
#define HW_IPCC_THREAD_CLI_NOTIFICATION_ACK_CHANNEL LL_IPCC_CHANNEL_5
252275
#define HW_IPCC_LLDTESTS_CLI_RSP_CHANNEL LL_IPCC_CHANNEL_5
253-
#define HW_IPCC_LLD_BLE_CLI_RSP_CHANNEL LL_IPCC_CHANNEL_5
254-
#define HW_IPCC_LLD_BLE_RSP_CHANNEL LL_IPCC_CHANNEL_5
276+
#define HW_IPCC_BLE_LLD_CLI_RSP_CHANNEL LL_IPCC_CHANNEL_5
277+
#define HW_IPCC_BLE_LLD_RSP_CHANNEL LL_IPCC_CHANNEL_5
255278
#define HW_IPCC_ZIGBEE_M0_REQUEST_CHANNEL LL_IPCC_CHANNEL_5
256279
#endif /*__MBOX_H */
257280

0 commit comments

Comments
 (0)