From 7d457b4d0b4255abc8f84e2c6f87417e0f4c3b23 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Wed, 7 Jul 2021 15:58:35 +0800 Subject: [PATCH] pipe: modify default stack size to fix stack overflow Change-Id: I16910ff216db6b915d7c1cc4084c0b79228769a5 Signed-off-by: Jiuzhu Dong --- examples/pipe/Kconfig | 5 +++++ examples/pipe/pipe.h | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/pipe/Kconfig b/examples/pipe/Kconfig index 4d835ad43..48710e5d2 100644 --- a/examples/pipe/Kconfig +++ b/examples/pipe/Kconfig @@ -11,4 +11,9 @@ config EXAMPLES_PIPE Enable the pipe example if EXAMPLES_PIPE + +config EXAMPLES_PIPE_STACKSIZE + int "pipe stack size" + default DEFAULT_TASK_STACKSIZE + endif diff --git a/examples/pipe/pipe.h b/examples/pipe/pipe.h index 59e38c573..277ed673d 100644 --- a/examples/pipe/pipe.h +++ b/examples/pipe/pipe.h @@ -36,10 +36,6 @@ #define FIFO_PATH1 "/tmp/testfifo-1" #define FIFO_PATH2 "/tmp/testfifo-2" -#ifndef CONFIG_EXAMPLES_PIPE_STACKSIZE -# define CONFIG_EXAMPLES_PIPE_STACKSIZE 1024 -#endif - /**************************************************************************** * Public Types ****************************************************************************/