8000 Update/add config macros · h2zero/NimBLE-Arduino@5cf5ba0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cf5ba0

Browse files
committed
Update/add config macros
1 parent 5d1f967 commit 5cf5ba0

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

src/nimconfig.h

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@
177177

178178
/* This section should not be altered */
179179
#ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED
180-
#define CONFIG_BT_NIMBLE_ROLE_CENTRAL
180+
#define CONFIG_BT_NIMBLE_ROLE_CENTRAL 1
181181
#endif
182182

183183
#ifndef CONFIG_BT_NIMBLE_ROLE_OBSERVER_DISABLED
184-
#define CONFIG_BT_NIMBLE_ROLE_OBSERVER
184+
#define CONFIG_BT_NIMBLE_ROLE_OBSERVER 1
185185
#endif
186186

187187
#ifndef CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
188-
#define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL
188+
#define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL 1
189189
#endif
190190

191191
#ifndef CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
192-
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
192+
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER 1
193193
#endif
194194

195195
#ifndef CONFIG_BT_NIMBLE_PINNED_TO_CORE
@@ -228,8 +228,14 @@
228228
#define CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE 0x0
229229
#endif
230230

231-
#ifndef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
232-
#define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT 12
231+
#ifdef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT // backward compatibility
232+
#define CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
233+
#elif !defined(CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT)
234+
#define CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT 12
235+
#endif
236+
237+
#ifndef CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE
238+
#define CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE 256
233239
#endif
234240

235241
#ifndef CONFIG_BT_NIMBLE_RPA_TIMEOUT
@@ -257,27 +263,32 @@
257263
#define CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN 31
258264

259265
/** @brief ACL Buffer count */
260-
#define CONFIG_BT_NIMBLE_ACL_BUF_COUNT 12
266+
#define CONFIG_BT_NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT 12
261267

262268
/** @brief ACL Buffer size */
263269
#define CONFIG_BT_NIMBLE_TRANSPORT_ACL_SIZE 255
264270

265-
/** @brief HCI Event Buffer size */
271+
/** @brief Transport (HCI) Event Buffer size */
266272
#if CONFIG_BT_NIMBLE_EXT_ADV
267-
# define CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE 257
273+
# define CONFIG_BT_NIMBLE_TRANSPORT_EVT_SIZE 257
268274
#else
269-
# define CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE 70
275+
# define CONFIG_BT_NIMBLE_TRANSPORT_EVT_SIZE 70
270276
#endif
271277

272278
/** @brief Number of high priority HCI event buffers */
273-
#define CONFIG_BT_NIMBLE_HCI_EVT_HI_BUF_COUNT 30
279+
#define CONFIG_BT_NIMBLE_TRANSPORT_EVT_COUNT 30
274280

275281
/** @brief Number of low priority HCI event buffers */
276-
#define CONFIG_BT_NIMBLE_HCI_EVT_LO_BUF_COUNT 8
282+
#define CONFIG_BT_NIMBLE_TRANSPORT_EVT_DISCARD_COUNT 8
277283

278284
/** @brief Maximum number of connection oriented channels */
279285
#define CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM 0
280286

287+
#define CONFIG_BT_NIMBLE_L2CAP_COC_SDU_BUFF_COUNT 1
288+
#define CONFIG_BT_NIMBLE_EATT_CHAN_NUM 0
289+
#define CONFIG_BT_NIMBLE_SVC_GAP_CENT_ADDR_RESOLUTION -1
290+
#define CONFIG_BT_NIMBLE_GATT_MAX_PROCS 4
291+
281292
#define CONFIG_BT_NIMBLE_HS_FLOW_CTRL 1
282293
#define CONFIG_BT_NIMBLE_HS_FLOW_CTRL_ITVL 1000
283294
#define CONFIG_BT_NIMBLE_HS_FLOW_CTRL_THRESH 2

0 commit comments

Comments
 (0)
0