瀏覽代碼

Merge pull request #1232 from enkiller/development

[components] Kconfig add option:set main thread stack size
Bernard Xiong 7 年之前
父節點
當前提交
669d9d957c
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      components/Kconfig

+ 6 - 0
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"