mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-29 13:00:25 +08:00
0227b5823e
2. Modify the return code to -1 when failed 3. Change the mounting filesystem from ramfs to sdcard 4. Replace RT_USING_RTGUI with PKG_USING_GUIENGINE and remove RT_USING_FTK
23 lines
326 B
C
23 lines
326 B
C
#include <rtthread.h>
|
|
|
|
#ifdef RT_USING_DFS
|
|
#include <dfs_fs.h>
|
|
#include "dfs_ramfs.h"
|
|
|
|
int mnt_init(void)
|
|
{
|
|
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
|
{
|
|
rt_kprintf("File System initialized!\n");
|
|
}
|
|
else
|
|
{
|
|
rt_kprintf("File System initialzation failed!\n");
|
|
}
|
|
|
|
return RT_EOK;
|
|
}
|
|
INIT_ENV_EXPORT(mnt_init);
|
|
#endif
|
|
|