summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-30 17:57:58 +0800
committerBernard Xiong <[email protected]>2015-09-30 17:57:58 +0800
commitaa190ed5f6145397d3004726c1704b0d408fe22d (patch)
treebe45ebe53fb7b3304f83472a430eb93c8583fa45
parent7e45f059dce0a7751beef09e5ac122a83d731c5b (diff)
[BSP] enable file system feature in simulator BSP
-rwxr-xr-xbsp/simulator/drivers/sd_sim.c1
-rwxr-xr-xbsp/simulator/rtconfig.h14
2 files changed, 8 insertions, 7 deletions
diff --git a/bsp/simulator/drivers/sd_sim.c b/bsp/simulator/drivers/sd_sim.c
index b3b265273d..de0dd7cf30 100755
--- a/bsp/simulator/drivers/sd_sim.c
+++ b/bsp/simulator/drivers/sd_sim.c
@@ -9,7 +9,6 @@
// #define SD_TRACE rt_kprintf
#define SD_TRACE(...)
-//#define SDCARD_SIM "F:\\Project\\tools\\SDCARD"
#define SDCARD_SIM "sd.bin"
#define SDCARD_SIZE (16*1024*1024) //16M
diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h
index 894a5822a1..1fc0ddbb8b 100755
--- a/bsp/simulator/rtconfig.h
+++ b/bsp/simulator/rtconfig.h
@@ -79,8 +79,6 @@
#define RT_CONSOLE_DEVICE_NAME "console"
// </section>
-// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
-// #define RT_USING_COMPONENTS_INIT
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
#define RT_USING_FINSH
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
@@ -89,6 +87,10 @@
#define FINSH_USING_DESCRIPTION
// <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
#define FINSH_THREAD_STACK_SIZE 4096
+// <bool name="FINSH_USING_MSH" description="Enable module shell feature" />
+#define FINSH_USING_MSH
+// <bool name="FINSH_USING_MSH_DEFAULT" description="Use module shell as the default shell" />
+#define FINSH_USING_MSH_DEFAULT
// </section>
// <section name="LIBC" description="C Runtime library setting" default="always" >
@@ -99,9 +101,9 @@
// </section>
// <section name="RT_USING_DFS" description="Device file system" default="true" >
-// #define RT_USING_DFS
+#define RT_USING_DFS
// <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
-// #define DFS_USING_WORKDIR
+#define DFS_USING_WORKDIR
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
#define DFS_FILESYSTEMS_MAX 2
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
@@ -232,10 +234,10 @@
#define _NO_OLDNAMES /* to ignore: mode_t in sys/type.h */
#endif /* end of __MINGW32__ */
+#endif /* end of _MSC_VER */
+
#ifdef _WIN32
#define RT_USING_DFS_WINSHAREDIR
#endif
-#endif /* end of _MSC_VER */
-
#endif