input: increase default stack size to 1024

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é <benjamin@zephyrproject.org>
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2024-02-20 19:19:34 +00:00 committed by David Leach
parent c13930791d
commit 906724fb99
2 changed files with 1 additions and 2 deletions

View file

@ -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.

View file

@ -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