diff --git a/components/Kconfig b/components/Kconfig index 40d9bee5e261c31948dd6dac487f0dd5c95327f2..188cb3dd9fd52488dd75aa210ff683dba4227f85 100644 --- a/components/Kconfig +++ b/components/Kconfig @@ -8,6 +8,12 @@ if RT_USING_COMPONENTS_INIT config RT_USING_USER_MAIN bool "The main() function as user entry function" default y + + if RT_USING_USER_MAIN + config RT_MAIN_THREAD_STACK_SIZE + int "Set main thread stack size" + default 2048 + endif endif source "$RTT_DIR/components/cplusplus/Kconfig"