You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/19 02:24:09 UTC

[incubator-nuttx-apps] branch master updated: wireless/bluetooth/nimble: make stacksize configurable

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2db90a8  wireless/bluetooth/nimble: make stacksize configurable
2db90a8 is described below

commit 2db90a8be5dde2afc88b96600eb478dc4a24852b
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Dec 18 18:01:18 2021 +0100

    wireless/bluetooth/nimble: make stacksize configurable
---
 wireless/bluetooth/nimble/Kconfig  | 6 +++++-
 wireless/bluetooth/nimble/Makefile | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/wireless/bluetooth/nimble/Kconfig b/wireless/bluetooth/nimble/Kconfig
index 995ed2b..e72a016 100644
--- a/wireless/bluetooth/nimble/Kconfig
+++ b/wireless/bluetooth/nimble/Kconfig
@@ -7,7 +7,11 @@ config NIMBLE
     host-layer stack.
 
 if NIMBLE
-  config NIMBLE_REF
+config NIMBLE_STACKSIZE
+	int "nimble stack size"
+	default DEFAULT_TASK_STACKSIZE
+
+config NIMBLE_REF
   string "Version"
   default "cd8ab38c3da91b71dd428979153a408f38d3b02e"
   ---help---
diff --git a/wireless/bluetooth/nimble/Makefile b/wireless/bluetooth/nimble/Makefile
index 743ccd2..f0b9fd7 100644
--- a/wireless/bluetooth/nimble/Makefile
+++ b/wireless/bluetooth/nimble/Makefile
@@ -21,7 +21,7 @@
 include $(APPDIR)/Make.defs
 
 PRIORITY  = 255
-STACKSIZE = 16384
+STACKSIZE = $(CONFIG_NIMBLE_STACKSIZE)
 
 NIMBLE_UNPACKDIR = mynewt-nimble
 NIMBLE_ROOT = $(APPDIR)/wireless/bluetooth/nimble/$(NIMBLE_UNPACKDIR)