瀏覽代碼

fix(Kconfig): Update the default value of FINSH_THREAD_PRIORITY to support different thread priorities

wdfk-prog 3 天之前
父節點
當前提交
d76eca1384
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      components/finsh/Kconfig

+ 3 - 1
components/finsh/Kconfig

@@ -20,7 +20,9 @@ if RT_USING_MSH
 
 
     config FINSH_THREAD_PRIORITY
     config FINSH_THREAD_PRIORITY
         int "The priority level value of thread"
         int "The priority level value of thread"
-        default 20
+        default 5   if RT_THREAD_PRIORITY_8
+        default 20  if RT_THREAD_PRIORITY_32
+        default 160 if RT_THREAD_PRIORITY_256
 
 
     config FINSH_THREAD_STACK_SIZE
     config FINSH_THREAD_STACK_SIZE
         int "The stack size for thread"
         int "The stack size for thread"