1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-5-30 bernard the first version 9 */ 10 11 #include <rtthread.h> 12 13 #ifdef BSP_USING_SDIO0 14 #include <dfs_fs.h> 15 mnt_init(void)16int mnt_init(void) 17 { 18 rt_thread_delay(RT_TICK_PER_SECOND); 19 if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) 20 { 21 rt_kprintf("file system initialization done!\n"); 22 } 23 24 return 0; 25 } 26 INIT_ENV_EXPORT(mnt_init); 27 #endif 28