mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-22 00:39:18 +08:00
21 lines
320 B
C
21 lines
320 B
C
|
#include <rtthread.h>
|
||
|
|
||
|
#ifdef RT_USING_DFS
|
||
|
#include <dfs_fs.h>
|
||
|
|
||
|
int mnt_init(void)
|
||
|
{
|
||
|
if (dfs_mount("W25Q256", "/", "elm", 0, 0) == 0)
|
||
|
{
|
||
|
rt_kprintf("W25Q256 mount successful!\n");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
rt_kprintf("W25Q256 mount failed!\n");
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
INIT_ENV_EXPORT(mnt_init);
|
||
|
#endif
|