rt-thread-official/bsp/raspberry-pi/raspi3-64/applications/mnt.c

29 lines
510 B
C
Raw Normal View History

2020-01-10 10:38:21 +08:00
/*
2021-03-14 12:58:10 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2020-01-10 10:38:21 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-5-30 bernard the first version
*/
#include <rtthread.h>
2020-02-28 14:47:18 +08:00
#ifdef BSP_USING_SDIO0
#include <dfs_fs.h>
2020-01-10 10:38:21 +08:00
int mnt_init(void)
{
2020-02-28 14:47:18 +08:00
rt_thread_delay(RT_TICK_PER_SECOND);
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
{
rt_kprintf("file system initialization done!\n");
}
2020-01-10 10:38:21 +08:00
return 0;
}
2020-02-28 14:47:18 +08:00
INIT_ENV_EXPORT(mnt_init);
#endif