diff options
| author | Meco Man <[email protected]> | 2021-11-24 08:57:12 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-24 08:57:12 -0500 |
| commit | bd80b7a4a15a2e97b13bbda69af8e909be544100 (patch) | |
| tree | a1fb709b028c20d5f1560f7ca60b96ebe0c5a717 /components | |
| parent | a3284876ff096999c4c3ecb4f0f5b65b752e4d74 (diff) | |
对finsh_set_device调用增加宏定义限制
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/finsh.h | 2 | ||||
| -rw-r--r-- | components/finsh/shell.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h index f5e4df9e49..865627fd79 100644 --- a/components/finsh/finsh.h +++ b/components/finsh/finsh.h @@ -168,7 +168,7 @@ extern struct finsh_syscall *_syscall_table_begin, *_syscall_table_end; /* find out system call, which should be implemented in user program */ struct finsh_syscall *finsh_syscall_lookup(const char *name); -#ifdef RT_USING_DEVICE +#if !defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_DEVICE) void finsh_set_device(const char *device_name); #endif diff --git a/components/finsh/shell.h b/components/finsh/shell.h index ca1ec308ed..0c20ba60dd 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -91,7 +91,6 @@ void finsh_set_echo(rt_uint32_t echo); rt_uint32_t finsh_get_echo(void); int finsh_system_init(void); -void finsh_set_device(const char *device_name); const char *finsh_get_device(void); int finsh_getchar(void); |
