1
- From d7d18d20b957f52810315147d671c1976a18c1d2 Mon Sep 17 00:00:00 2001
1
+ From 81472cc135126cb46701a058647de2cf82160fb9 Mon Sep 17 00:00:00 2001
2
2
From: Frederic Pillon <
[email protected] >
3
3
Date: Mon, 12 Dec 2022 17:29:27 +0100
4
4
Subject: [PATCH 3/3] chore: add support for customize app_conf_default.h
5
5
6
6
Signed-off-by: Frederic Pillon <
[email protected] >
7
7
---
8
- src/utility/STM32Cube_FW/app_conf_default.h | 58 +++++++++++++++- -----
9
- 1 file changed, 42 insertions(+), 16 deletions(-)
8
+ src/utility/STM32Cube_FW/app_conf_default.h | 88 ++++++++++++++++ -----
9
+ 1 file changed, 68 insertions(+), 20 deletions(-)
10
10
11
11
diff --git a/src/utility/STM32Cube_FW/app_conf_default.h b/src/utility/STM32Cube_FW/app_conf_default.h
12
- index cc8c3e8..57f1027 100644
12
+ index cc8c3e8..35cad34 100644
13
13
--- a/src/utility/STM32Cube_FW/app_conf_default.h
14
14
+++ b/src/utility/STM32Cube_FW/app_conf_default.h
15
15
@@ -41,7 +41,9 @@
@@ -23,13 +23,17 @@ index cc8c3e8..57f1027 100644
23
23
24
24
/******************************************************************************
25
25
* BLE Stack
26
- @@ -50,13 +52,17 @@
26
+ @@ -50,13 +52,25 @@
27
27
* Maximum number of simultaneous connections that the device will support.
28
28
* Valid values are from 1 to 8
29
29
*/
30
30
- #define CFG_BLE_NUM_LINK 8
31
31
+ #ifndef CFG_BLE_NUM_LINK
32
+ + #ifdef STM32WB15xx
33
+ + #define CFG_BLE_NUM_LINK 3
34
+ + #else
32
35
+ #define CFG_BLE_NUM_LINK 8
36
+ + #endif
33
37
+ #endif
34
38
35
39
/**
@@ -38,18 +42,26 @@ index cc8c3e8..57f1027 100644
38
42
*/
39
43
- #define CFG_BLE_NUM_GATT_SERVICES 8
40
44
+ #ifndef CFG_BLE_NUM_GATT_SERVICES
45
+ + #ifdef STM32WB15xx
46
+ + #define CFG_BLE_NUM_GATT_SERVICES 4
47
+ + #else
41
48
+ #define CFG_BLE_NUM_GATT_SERVICES 8
49
+ + #endif
42
50
+ #endif
43
51
44
52
/**
45
53
* Maximum number of Attributes
46
- @@ -65,13 +71,17 @@
54
+ @@ -65,13 +79,21 @@
47
55
* Note that certain characteristics and relative descriptors are added automatically during device initialization
48
56
* so this parameters should be 9 plus the number of user Attributes
49
57
*/
50
58
- #define CFG_BLE_NUM_GATT_ATTRIBUTES 68
51
59
+ #ifndef CFG_BLE_NUM_GATT_ATTRIBUTES
52
- + #define CFG_BLE_NUM_GATT_ATTRIBUTES 68
60
+ + #ifdef STM32WB15xx
61
+ + #define CFG_BLE_NUM_GATT_ATTRIBUTES 30
62
+ + #else
63
+ + #define CFG_BLE_NUM_GATT_ATTRIBUTES 68
64
+ + #endif
53
65
+ #endif
54
66
55
67
/**
@@ -63,13 +75,17 @@ index cc8c3e8..57f1027 100644
63
75
64
76
/**
65
77
* Size of the storage area for Attribute values
66
- @@ -84,14 +94,18 @@
78
+ @@ -84,14 +106,22 @@
67
79
* The total amount of memory needed is the sum of the above quantities for each attribute.
68
80
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
69
81
*/
70
82
- #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
71
83
+ #ifndef CFG_BLE_ATT_VALUE_ARRAY_SIZE
84
+ + #ifdef STM32WB15xx
85
+ + #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1290)
86
+ + #else
72
87
+ #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
88
+ + #endif
73
89
+ #endif
74
90
75
91
/**
@@ -84,7 +100,7 @@ index cc8c3e8..57f1027 100644
84
100
85
101
/**
86
102
* Number of allocated memory blocks
87
- @@ -103,12 +117 ,16 @@
103
+ @@ -103,12 +133 ,16 @@
88
104
/**
89
105
* Enable or disable the Extended Packet length feature. Valid values are 0 or 1.
90
106
*/
@@ -103,7 +119,7 @@ index cc8c3e8..57f1027 100644
103
119
104
120
/**
105
121
* Sleep clock accuracy in Master mode
106
- @@ -121,7 +139 ,9 @@
122
+ @@ -121,7 +155 ,9 @@
107
123
* 6 : 21 ppm to 30 ppm
108
124
* 7 : 0 ppm to 20 ppm
109
125
*/
@@ -114,7 +130,7 @@ index cc8c3e8..57f1027 100644
114
130
115
131
/**
116
132
* LsSource
117
- @@ -130,21 +150 ,27 @@
133
+ @@ -130,21 +166 ,27 @@
118
134
* - bit 1: 1: STM32WB5M Module device 0: Other devices as STM32WBxx SOC, STM32WB1M module
119
135
* - bit 2: 1: HSE/1024 Clock config 0: LSE Clock config
120
136
*/
@@ -148,6 +164,34 @@ index cc8c3e8..57f1027 100644
148
164
149
165
/**
150
166
* Viterbi Mode
167
+ @@ -224,8 +266,11 @@
168
+ * on Max Extended advertising configuration supported.
169
+ * This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
170
+ */
171
+ -
172
+ - #define CFG_BLE_MAX_ADV_SET_NBR (8)
173
+ + #if defined(STM32WB15xx)
174
+ + #define CFG_BLE_MAX_ADV_SET_NBR (3)
175
+ + #else
176
+ + #define CFG_BLE_MAX_ADV_SET_NBR (8)
177
+ + #endif
178
+
179
+ /* Maximum advertising data length (in bytes)
180
+ * Range: 31 .. 1650 with limitation:
181
+ @@ -233,8 +278,11 @@
182
+ * on Max Extended advertising configuration supported.
183
+ * This parameter is considered by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV flag set
184
+ */
185
+ -
186
+ - #define CFG_BLE_MAX_ADV_DATA_LEN (207)
187
+ + #if defined(STM32WB15xx)
188
+ + #define CFG_BLE_MAX_ADV_DATA_LEN (414)
189
+ + #else
190
+ + #define CFG_BLE_MAX_ADV_DATA_LEN (207)
191
+ + #endif
192
+
193
+ /* RF TX Path Compensation Value (16-bit signed integer). Units: 0.1 dB.
194
+ * Range: -1280 .. 1280
151
195
- -
152
196
2.38.0.windows.1
153
197
0 commit comments