This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit f5b2c354ca787cd9e4114b676cf8d3f01a6fb135
Author: raiden00pl <[email protected]>
AuthorDate: Sat Jul 11 20:46:30 2026 +0200

    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 <[email protected]>
---
 wireless/bluetooth/nimble/Kconfig                 | 12 ++++++++++++
 wireless/bluetooth/nimble/include/syscfg/syscfg.h |  4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/wireless/bluetooth/nimble/Kconfig 
b/wireless/bluetooth/nimble/Kconfig
index b679ec6bd..9be1030be 100644
--- a/wireless/bluetooth/nimble/Kconfig
+++ b/wireless/bluetooth/nimble/Kconfig
@@ -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
diff --git a/wireless/bluetooth/nimble/include/syscfg/syscfg.h 
b/wireless/bluetooth/nimble/include/syscfg/syscfg.h
index a10f5f3d3..22f93a5fa 100644
--- a/wireless/bluetooth/nimble/include/syscfg/syscfg.h
+++ b/wireless/bluetooth/nimble/include/syscfg/syscfg.h
@@ -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)

Reply via email to