summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/gd32303e-eval/rtconfig.h1
-rw-r--r--bsp/lm3s8962/applications/startup.c2
-rw-r--r--bsp/lm3s8962/rtconfig.h5
3 files changed, 5 insertions, 3 deletions
diff --git a/bsp/gd32303e-eval/rtconfig.h b/bsp/gd32303e-eval/rtconfig.h
index 7a47c83787..365fd296e0 100644
--- a/bsp/gd32303e-eval/rtconfig.h
+++ b/bsp/gd32303e-eval/rtconfig.h
@@ -125,6 +125,7 @@
/* POSIX layer and C standard library */
#define RT_USING_LIBC
+#define RT_USING_POSIX
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* end of POSIX layer and C standard library */
diff --git a/bsp/lm3s8962/applications/startup.c b/bsp/lm3s8962/applications/startup.c
index 87df6e8788..0742c5453c 100644
--- a/bsp/lm3s8962/applications/startup.c
+++ b/bsp/lm3s8962/applications/startup.c
@@ -119,7 +119,7 @@ void rtthread_startup(void)
#ifdef RT_USING_FINSH
/* init finsh */
finsh_system_init();
-#ifdef RT_USING_DEVICE
+#if !defined(RT_USING_LIBC) && defined(RT_USING_DEVICE)
finsh_set_device("uart1");
#endif
#endif
diff --git a/bsp/lm3s8962/rtconfig.h b/bsp/lm3s8962/rtconfig.h
index b154688a6d..dd583205ba 100644
--- a/bsp/lm3s8962/rtconfig.h
+++ b/bsp/lm3s8962/rtconfig.h
@@ -75,8 +75,10 @@
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
+#define RT_USING_LIBC
#define RT_USING_DFS
-/* SECTION: DFS options */
+#define RT_USING_POSIX
+#define RT_USING_DFS_DEVFS
#define RT_USING_DFS_ELMFAT
#define RT_DFS_ELM_WORD_ACCESS
@@ -144,6 +146,5 @@
/* the size of each pbuf in the pbuf pool. */
#define RT_LWIP_PBUF_POOL_BUFSIZE 1500
-#define RT_USING_LIBC
#define RT_USING_LWIP141
#endif