summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-17 22:27:06 +0800
committerbernard <[email protected]>2017-10-17 22:27:06 +0800
commit8a38307e2cce628017e9eb7153ae7a2430a3d9ef (patch)
tree1eb4cfdceddb9c542806acf226d463de62271abb /components/finsh
parent947d8aa4d2d0742eb5ac1968406893f4e58a279b (diff)
[libc] Add RT_USING_POSIX macro.
1. Add macro check in rtdebug.h; 2. Use RT_USING_POSIX for poll/select, stdin etc. 3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 8e1f814560..4c20b3c640 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -84,7 +84,7 @@ const char *finsh_get_prompt()
static char finsh_getchar(void)
{
-#ifdef RT_USING_POSIX_STDIN
+#ifdef RT_USING_POSIX
return getchar();
#else
char ch;
@@ -97,7 +97,7 @@ static char finsh_getchar(void)
#endif
}
-#ifndef RT_USING_POSIX_STDIN
+#ifndef RT_USING_POSIX
static rt_err_t finsh_rx_ind(rt_device_t dev, rt_size_t size)
{
RT_ASSERT(shell != RT_NULL);
@@ -420,7 +420,7 @@ void finsh_thread_entry(void *parameter)
finsh_init(&shell->parser);
#endif
-#ifndef RT_USING_POSIX_STDIN
+#ifndef RT_USING_POSIX
/* set console device as shell device */
if (shell->device == RT_NULL)
{