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
This commit is contained in:
parent
6d7e6d8f79
commit
cb92e84504
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue