From 906724fb9951cf4ce54074c709aa8dddc85d8481 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Tue, 20 Feb 2024 19:19:34 +0000 Subject: [PATCH] input: increase default stack size to 1024 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default 512 bytes stack size is a bit tight for some architecture and leads to samples running out of stack. Let's default to 1024 and let the user tweak it down if necessary. Suggested-by: Benjamin Cabé Signed-off-by: Fabio Baltieri --- subsys/input/Kconfig | 2 +- tests/subsys/input/api/testcase.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/input/Kconfig b/subsys/input/Kconfig index 8f6e1556409..3678f6da28b 100644 --- a/subsys/input/Kconfig +++ b/subsys/input/Kconfig @@ -60,7 +60,7 @@ config INPUT_QUEUE_MAX_MSGS config INPUT_THREAD_STACK_SIZE int "Input thread stack size" - default 512 + default 1024 help Stack size for the thread processing the input events, must have enough space for executing the registered callbacks. diff --git a/tests/subsys/input/api/testcase.yaml b/tests/subsys/input/api/testcase.yaml index 1df02cf009e..2bb1c600d0b 100644 --- a/tests/subsys/input/api/testcase.yaml +++ b/tests/subsys/input/api/testcase.yaml @@ -9,7 +9,6 @@ tests: input.api.thread: extra_configs: - CONFIG_INPUT_MODE_THREAD=y - - CONFIG_INPUT_THREAD_STACK_SIZE=1024 input.api.synchronous: extra_configs: - CONFIG_INPUT_MODE_SYNCHRONOUS=y