summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f429-atk-apollo/applications/mnt.c
blob: c8e08902636de4f9707025bb9f1cbd2f32bd097e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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