mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 09:43:30 +08:00
commit
9ce84eddc1
@ -7,6 +7,9 @@ src = Split("""
|
||||
main.c
|
||||
""")
|
||||
|
||||
if GetDepend(['RT_USING_DFS']):
|
||||
src += ['mnt.c']
|
||||
|
||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
20
bsp/stm32/stm32f429-atk-apollo/applications/mnt.c
Normal file
20
bsp/stm32/stm32f429-atk-apollo/applications/mnt.c
Normal file
@ -0,0 +1,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
|
Loading…
x
Reference in New Issue
Block a user