diff options
| author | bernard.xiong <[email protected]> | 2009-10-26 23:14:57 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-10-26 23:14:57 +0000 |
| commit | 6e71f1af7d710fb3ce2f77d3cc3d19323d44dc71 (patch) | |
| tree | 5281d608ff646b8c8d226c3486087e620e118bfb | |
| parent | 0cab7ce3bc6b01cfa9c2111b821cf971bb120bb6 (diff) | |
add DFS_ELMFAT option
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@142 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | bsp/stm32_radio/application.c | 11 | ||||
| -rw-r--r-- | bsp/stm32_radio/rtconfig.h | 11 |
2 files changed, 15 insertions, 7 deletions
diff --git a/bsp/stm32_radio/application.c b/bsp/stm32_radio/application.c index 14cefe92f8..ea98b5f59e 100644 --- a/bsp/stm32_radio/application.c +++ b/bsp/stm32_radio/application.c @@ -92,6 +92,7 @@ void rt_init_thread_entry(void *parameter) {
/* init the device filesystem */
dfs_init();
+#ifdef RT_USING_DFS_EFSL
/* init the efsl filesystam*/
efsl_init();
@@ -100,6 +101,16 @@ void rt_init_thread_entry(void *parameter) rt_kprintf("File System initialized!\n");
else
rt_kprintf("File System init failed!\n");
+#elif defined(RT_USING_DFS_ELMFAT)
+ /* init the elm FAT filesystam*/
+ elm_init();
+
+ /* mount sd card fat partition 1 as root directory */
+ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
+ rt_kprintf("File System initialized!\n");
+ else
+ rt_kprintf("File System init failed!\n");
+#endif
}
#endif
diff --git a/bsp/stm32_radio/rtconfig.h b/bsp/stm32_radio/rtconfig.h index b0ea14db91..864ad47567 100644 --- a/bsp/stm32_radio/rtconfig.h +++ b/bsp/stm32_radio/rtconfig.h @@ -34,9 +34,6 @@ /* Using Event*/ #define RT_USING_EVENT -/* Using Faset Event*/ -/* #define RT_USING_FASTEVENT */ - /* Using MailBox*/ #define RT_USING_MAILBOX @@ -73,10 +70,7 @@ /* Using symbol table */ #define FINSH_USING_SYMTAB #define FINSH_USING_DESCRIPTION - -/* SECTION: a mini libc */ -/* Using mini libc library*/ -/* #define RT_USING_MINILIBC */ +#define FINSH_DEVICE_NAME "uart1" /* SECTION: C++ support */ /* Using C++ support*/ @@ -85,6 +79,8 @@ /* #define RT_USING_RTGUI */ #define RT_USING_DFS +#define RT_USING_DFS_EFSL +// #define RT_USING_DFS_ELMFAT /* SECTION: DFS options */ /* the max number of mounted filesystem */ #define DFS_FILESYSTEMS_MAX 1 @@ -156,6 +152,7 @@ #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4 #define RT_LWIP_ETHTHREAD_STACKSIZE 512 +/* SECTION: RT-Thread/GUI */ #define RT_USING_RTGUI
#endif |
