mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 07:49:30 +08:00
20 lines
298 B
C
20 lines
298 B
C
#include <rtthread.h>
|
|
|
|
#ifdef RT_USING_DFS
|
|
#include <dfs_fs.h>
|
|
|
|
int mnt_init(void)
|
|
{
|
|
rt_thread_delay(RT_TICK_PER_SECOND);
|
|
|
|
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
|
{
|
|
rt_kprintf("file system initialization done!\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
INIT_ENV_EXPORT(mnt_init);
|
|
#endif
|
|
|