|
53 | 53 | * Valid values are from 1 to 8
|
54 | 54 | */
|
55 | 55 | #ifndef CFG_BLE_NUM_LINK
|
| 56 | +#ifdef STM32WB15xx |
| 57 | + #define CFG_BLE_NUM_LINK 3 |
| 58 | +#else |
56 | 59 | #define CFG_BLE_NUM_LINK 8
|
57 | 60 | #endif
|
| 61 | +#endif |
58 | 62 |
|
59 | 63 | /**
|
60 | 64 | * Maximum number of Services that can be stored in the GATT database.
|
61 | 65 | * Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services
|
62 | 66 | */
|
63 | 67 | #ifndef CFG_BLE_NUM_GATT_SERVICES
|
| 68 | +#ifdef STM32WB15xx |
| 69 | + #define CFG_BLE_NUM_GATT_SERVICES 4 |
| 70 | +#else |
64 | 71 | #define CFG_BLE_NUM_GATT_SERVICES 8
|
65 | 72 | #endif
|
| 73 | +#endif |
66 | 74 |
|
67 | 75 | /**
|
68 | 76 | * Maximum number of Attributes
|
|
72 | 80 | * so this parameters should be 9 plus the number of user Attributes
|
73 | 81 | */
|
74 | 82 | #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 |
76 | 88 | #endif
|
77 | 89 |
|
78 | 90 | /**
|
|
95 | 107 | * This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
|
96 | 108 | */
|
97 | 109 | #ifndef CFG_BLE_ATT_VALUE_ARRAY_SIZE
|
| 110 | +#ifdef STM32WB15xx |
| 111 | + #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1290) |
| 112 | +#else |
98 | 113 | #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
|
99 | 114 | #endif
|
| 115 | +#endif |
100 | 116 |
|
101 | 117 | /**
|
102 | 118 | * Prepare Write List size in terms of number of packet
|
|
250 | 266 | * on Max Extended advertising configuration supported.
|
251 | 267 | * This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
|
252 | 268 | */
|
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 |
255 | 274 |
|
256 | 275 | /* Maximum advertising data length (in bytes)
|
257 | 276 | * Range: 31 .. 1650 with limitation:
|
258 | 277 | * 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
|
259 | 278 | * on Max Extended advertising configuration supported.
|
260 | 279 | * This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
|
261 | 280 | */
|
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 |
264 | 286 |
|
265 | 287 | /* RF TX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
|
266 | 288 | * Range: -1280 .. 1280
|
|
0 commit comments