Skip to content

Commit 0fe8e71

Browse files
committed
chore: update app_conf default for STM32WB15xx
Signed-off-by: Frederic Pillon <[email protected]>
1 parent b232c9a commit 0fe8e71

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

Diff for: src/utility/STM32Cube_FW/app_conf_default.h

+27-5
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,24 @@
5353
* Valid values are from 1 to 8
5454
*/
5555
#ifndef CFG_BLE_NUM_LINK
56+
#ifdef STM32WB15xx
57+
#define CFG_BLE_NUM_LINK 3
58+
#else
5659
#define CFG_BLE_NUM_LINK 8
5760
#endif
61+
#endif
5862

5963
/**
6064
* Maximum number of Services that can be stored in the GATT database.
6165
* Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services
6266
*/
6367
#ifndef CFG_BLE_NUM_GATT_SERVICES
68+
#ifdef STM32WB15xx
69+
#define CFG_BLE_NUM_GATT_SERVICES 4
70+
#else
6471
#define CFG_BLE_NUM_GATT_SERVICES 8
6572
#endif
73+
#endif
6674

6775
/**
6876
* Maximum number of Attributes
@@ -72,7 +80,11 @@
7280
* so this parameters should be 9 plus the number of user Attributes
7381
*/
7482
#ifndef CFG_BLE_NUM_GATT_ATTRIBUTES
75-
#define CFG_BLE_NUM_GATT_ATTRIBUTES 68
83+
#ifdef STM32WB15xx
84+
#define CFG_BLE_NUM_GATT_ATTRIBUTES 30
85+
#else
86+
#define CFG_BLE_NUM_GATT_ATTRIBUTES 68
87+
#endif
7688
#endif
7789

7890
/**
@@ -95,8 +107,12 @@
95107
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
96108
*/
97109
#ifndef CFG_BLE_ATT_VALUE_ARRAY_SIZE
110+
#ifdef STM32WB15xx
111+
#define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1290)
112+
#else
98113
#define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
99114
#endif
115+
#endif
100116

101117
/**
102118
* Prepare Write List size in terms of number of packet
@@ -250,17 +266,23 @@
250266
* on Max Extended advertising configuration supported.
251267
* This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
252268
*/
253-
254-
#define CFG_BLE_MAX_ADV_SET_NBR (8)
269+
#if defined(STM32WB15xx)
270+
#define CFG_BLE_MAX_ADV_SET_NBR (3)
271+
#else
272+
#define CFG_BLE_MAX_ADV_SET_NBR (8)
273+
#endif
255274

256275
/* Maximum advertising data length (in bytes)
257276
* Range: 31 .. 1650 with limitation:
258277
* This parameter is linked to CFG_BLE_MAX_ADV_SET_NBR such as both compliant with allocated Total memory computed with BLE_EXT_ADV_BUFFER_SIZE based
259278
* on Max Extended advertising configuration supported.
260279
* This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
261280
*/
262-
263-
#define CFG_BLE_MAX_ADV_DATA_LEN (207)
281+
#if defined(STM32WB15xx)
282+
#define CFG_BLE_MAX_ADV_DATA_LEN (414)
283+
#else
284+
#define CFG_BLE_MAX_ADV_DATA_LEN (207)
285+
#endif
264286

265287
/* RF TX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
266288
* Range: -1280 .. 1280

0 commit comments

Comments
 (0)