Explorar el Código

change the priority level of shell task to 5 when the maximal priority level in system is 8.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@567 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong hace 15 años
padre
commit
cb92e84504
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      finsh/shell.c

+ 10 - 1
finsh/shell.c

@@ -436,10 +436,19 @@ void finsh_system_init()
 #endif
 #endif
 
+#if RT_THREAD_PRIORITY_MAX == 8
 	rt_thread_init(&finsh_thread,
 		"tshell",
 		finsh_thread_entry, RT_NULL,
 		&finsh_thread_stack[0], sizeof(finsh_thread_stack),
-		20, 100);
+		5, 10);
+#else
+	rt_thread_init(&finsh_thread,
+		"tshell",
+		finsh_thread_entry, RT_NULL,
+		&finsh_thread_stack[0], sizeof(finsh_thread_stack),
+		20, 10);
+#endif
+
 	rt_thread_startup(&finsh_thread);
 }