提交 444915d1 编写于 作者: B bernard

[finsh] Add RT_USING_POSIX_STDIN options.

上级 c5e8d9d7
...@@ -18,6 +18,10 @@ config FINSH_USING_DESCRIPTION ...@@ -18,6 +18,10 @@ config FINSH_USING_DESCRIPTION
bool "Keeping description in symbol table" bool "Keeping description in symbol table"
default y default y
config FINSH_THREAD_PRIORITY
int "The priority level value of finsh thread"
default 20
config FINSH_THREAD_STACK_SIZE config FINSH_THREAD_STACK_SIZE
int "The stack size for finsh thread" int "The stack size for finsh thread"
default 4096 default 4096
......
...@@ -86,7 +86,7 @@ static char finsh_getchar(void) ...@@ -86,7 +86,7 @@ static char finsh_getchar(void)
{ {
RT_ASSERT(shell != RT_NULL); RT_ASSERT(shell != RT_NULL);
#ifdef RT_USING_DFS #ifdef RT_USING_POSIX_STDIN
return getchar(); return getchar();
#else #else
char ch; char ch;
...@@ -98,7 +98,7 @@ static char finsh_getchar(void) ...@@ -98,7 +98,7 @@ static char finsh_getchar(void)
#endif #endif
} }
#ifndef RT_USING_DFS #ifndef RT_USING_POSIX_STDIN
static rt_err_t finsh_rx_ind(rt_device_t dev, rt_size_t size) static rt_err_t finsh_rx_ind(rt_device_t dev, rt_size_t size)
{ {
RT_ASSERT(shell != RT_NULL); RT_ASSERT(shell != RT_NULL);
...@@ -421,7 +421,7 @@ void finsh_thread_entry(void *parameter) ...@@ -421,7 +421,7 @@ void finsh_thread_entry(void *parameter)
finsh_init(&shell->parser); finsh_init(&shell->parser);
#endif #endif
#ifndef RT_USING_DFS #ifndef RT_USING_POSIX_STDIN
/* set console device as shell device */ /* set console device as shell device */
if (shell->device == RT_NULL) if (shell->device == RT_NULL)
{ {
......
...@@ -102,7 +102,7 @@ struct finsh_shell ...@@ -102,7 +102,7 @@ struct finsh_shell
rt_uint8_t line_position; rt_uint8_t line_position;
rt_uint8_t line_curpos; rt_uint8_t line_curpos;
#ifndef RT_USING_DFS #ifndef RT_USING_POSIX_STDIN
rt_device_t device; rt_device_t device;
#endif #endif
...@@ -124,3 +124,4 @@ const char *finsh_get_password(void); ...@@ -124,3 +124,4 @@ const char *finsh_get_password(void);
#endif #endif
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册