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 2022/01/22 17:34:30 UTC

[incubator-nuttx-apps] 02/04: canutils/cansend: 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

commit 13fcbcb3d1f3cf66b7ade640fbbea9c35f9ed896
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Jan 22 17:06:32 2022 +0100

    canutils/cansend: make stacksize configurable
---
 canutils/cansend/Kconfig  | 5 +++++
 canutils/cansend/Makefile | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/canutils/cansend/Kconfig b/canutils/cansend/Kconfig
index 9d4adea..c471b7d 100644
--- a/canutils/cansend/Kconfig
+++ b/canutils/cansend/Kconfig
@@ -13,4 +13,9 @@ config CANUTILS_CANSEND
 		https://github.com/linux-can/can-utils
 
 if CANUTILS_CANSEND
+
+config CANUTILS_CANSEND_STACKSIZE
+	int "SocketCAN cansend stack size"
+	default DEFAULT_TASK_STACKSIZE
+
 endif
diff --git a/canutils/cansend/Makefile b/canutils/cansend/Makefile
index 8df2057..0f10627 100644
--- a/canutils/cansend/Makefile
+++ b/canutils/cansend/Makefile
@@ -25,7 +25,7 @@ include $(APPDIR)/Make.defs
 
 PROGNAME = cansend
 PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 2048
+STACKSIZE = $(CONFIG_CANUTILS_CANSEND_STACKSIZE)
 MODULE = $(CONFIG_CANUTILS_CANSEND)
 
 CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/canutils/libcanutils}