You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Maximum number of simultaneous connections that the device will support.
52
53
* Valid values are from 1 to 8
53
54
*/
54
-
-#define CFG_BLE_NUM_LINK 2
55
+
-#define CFG_BLE_NUM_LINK 8
55
56
+#ifndef CFG_BLE_NUM_LINK
56
-
+ #define CFG_BLE_NUM_LINK 2
57
+
+ #define CFG_BLE_NUM_LINK 8
57
58
+#endif
58
59
59
60
/**
60
61
* Maximum number of Services that can be stored in the GATT database.
61
-
- * Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services
62
-
+ * Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user
63
-
+ * services
62
+
* Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services
64
63
*/
64
+
-#define CFG_BLE_NUM_GATT_SERVICES 8
65
65
+#ifndef CFG_BLE_NUM_GATT_SERVICES
66
-
#define CFG_BLE_NUM_GATT_SERVICES 8
66
+
+ #define CFG_BLE_NUM_GATT_SERVICES 8
67
67
+#endif
68
68
69
69
/**
70
70
* Maximum number of Attributes
71
-
- * (i.e. the number of characteristic + the number of characteristic values + the number of descriptors, excluding the services)
72
-
- * that can be stored in the GATT database.
73
-
- * Note that certain characteristics and relative descriptors are added automatically during device initialization
74
-
- * so this parameters should be 9 plus the number of user Attributes
75
-
+ * (i.e. the number of characteristic + the number of characteristic values + the number of descriptors, excluding the
76
-
+ * services) that can be stored in the GATT database. Note that certain characteristics and relative descriptors are
77
-
+ * added automatically during device initialization so this parameters should be 9 plus the number of user Attributes
71
+
@@ -68,13 +71,17 @@
72
+
* Note that certain characteristics and relative descriptors are added automatically during device initialization
73
+
* so this parameters should be 9 plus the number of user Attributes
78
74
*/
79
75
-#define CFG_BLE_NUM_GATT_ATTRIBUTES 68
80
76
+#ifndef CFG_BLE_NUM_GATT_ATTRIBUTES
@@ -83,7 +79,7 @@ index 4f300e0..9f8e085 100644
83
79
84
80
/**
85
81
* Maximum supported ATT_MTU size
86
-
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS is set to 1"
82
+
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
87
83
*/
88
84
-#define CFG_BLE_MAX_ATT_MTU (156)
89
85
+#ifndef CFG_BLE_MAX_ATT_MTU
@@ -92,23 +88,18 @@ index 4f300e0..9f8e085 100644
92
88
93
89
/**
94
90
* Size of the storage area for Attribute values
95
-
- * This value depends on the number of attributes used by application. In particular the sum of the following quantities (in octets) should be made for each attribute:
96
-
+ * This value depends on the number of attributes used by application. In particular the sum of the following
97
-
+ * quantities (in octets) should be made for each attribute:
98
-
* - attribute value length
99
-
* - 5, if UUID is 16 bit; 19, if UUID is 128 bit
100
-
* - 2, if server configuration descriptor is used
101
-
@@ -87,14 +95,18 @@
91
+
@@ -87,14 +94,18 @@
102
92
* The total amount of memory needed is the sum of the above quantities for each attribute.
103
-
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS is set to 1"
93
+
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
104
94
*/
95
+
-#define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
105
96
+#ifndef CFG_BLE_ATT_VALUE_ARRAY_SIZE
106
-
#define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
97
+
+ #define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
107
98
+#endif
108
99
109
100
/**
110
101
* Prepare Write List size in terms of number of packet
111
-
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS is set to 1"
102
+
* This parameter is ignored by the CPU2 when CFG_BLE_OPTIONS has SHCI_C2_BLE_INIT_OPTIONS_LL_ONLY flag set
0 commit comments