From 2db90a8be5dde2afc88b96600eb478dc4a24852b Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 18 Dec 2021 18:01:18 +0100 Subject: [PATCH] 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 995ed2bb6..e72a01626 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 743ccd2dc..f0b9fd7f6 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)