mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
wireless/bluetooth/nimble: make transport ACL buffer count configurable
The controller<->host ACL pool was hardcoded to 10 buffers (~6 KiB with the 251-byte ACL size). Expose NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT and NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT (default 10) so RAM-constrained single-connection peripherals can lower it. Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
parent
850f481344
commit
f5b2c354ca
2 changed files with 14 additions and 2 deletions
|
|
@ -219,6 +219,18 @@ config NIMBLE_MSYS_2_BLOCK_SIZE
|
|||
int "NimBLE MSYS_2 block size"
|
||||
default 0
|
||||
|
||||
config NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT
|
||||
int "NimBLE transport ACL buffer count (controller to host)"
|
||||
default 10
|
||||
---help---
|
||||
Number of ACL buffers in the transport pool.
|
||||
|
||||
config NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT
|
||||
int "NimBLE transport ACL buffer count (host to controller)"
|
||||
default 10
|
||||
---help---
|
||||
Number of ACL buffers in the transport pool.
|
||||
|
||||
endmenu # "NimBLE memory configuration"
|
||||
|
||||
config NIMBLE_PORTING_EXAMPLE
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@
|
|||
|
||||
/* Transport configuration */
|
||||
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (10)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (10)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (CONFIG_NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (CONFIG_NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE (251)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT (4)
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT (16)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue