diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 90792e00390c3e26e501b049e7ab836b2830b3ba..d1fadd722145cac7a2d6e4d93b8f925d78c8c0bc 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -776,7 +776,7 @@ int finsh_system_init(void) rt_sem_init(&(shell->rx_sem), "shrx", 0, 0); result = rt_thread_init(&finsh_thread, - "tshell", + FINSH_THREAD_NAME, finsh_thread_entry, RT_NULL, &finsh_thread_stack[0], sizeof(finsh_thread_stack), FINSH_THREAD_PRIORITY, 10); diff --git a/components/finsh/shell.h b/components/finsh/shell.h index 51494cb07b5b8c295f03245dd2366e110432d648..7d5dd47076a2cc5ea6b440b69b25dc516eaa51e6 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -73,6 +73,10 @@ const char* finsh_get_prompt(void); #endif #endif /* FINSH_USING_AUTH */ +#ifndef FINSH_THREAD_NAME +#define FINSH_THREAD_NAME "tshell" +#endif + enum input_stat { WAIT_NORMAL,