Skip to content

Commit 064e8de

Browse files
put the acl buffer size in config
1 parent 64575fe commit 064e8de

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
"help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive).",
5252
"value": 23
5353
},
54+
"rx-acl-buffer-size": {
55+
"help": "Size of the buffer holding the ACL packet. This will limit the effective ATT_MTU (to its value minus 4 bytes for the header). The size of the buffer must be small enough to be allocated from the existing cordio pool. If this value is increased you may need to adjust the memory pool.",
56+
"value": 100
57+
},
5458
"max-prepared-writes": {
5559
"help": "Number of queued prepare writes supported by server.",
5660
"value": 4

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ void BLE::stack_setup()
510510

511511
stack_handler_id = WsfOsSetNextHandler(&BLE::stack_handler);
512512

513-
HciSetMaxRxAclLen(100);
513+
HciSetMaxRxAclLen(MBED_CONF_CORDIO_RX_ACL_BUFFER_SIZE);
514514

515515
DmRegister(BLE::device_manager_cb);
516516
#if BLE_FEATURE_CONNECTABLE

0 commit comments

Comments
 (0)