4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-29 13:00:25 +08:00
Jonne 0227b5823e 1. Remove unuseful function(rt_system_module_init)
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
2020-04-11 17:56:06 +08:00

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