1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  */
8 #include <rtthread.h>
9 
10 #define DBG_LEVEL DBG_INFO
11 #include <rtdbg.h>
12 
13 #ifdef RT_USING_DFS
14 #include <dfs.h>
15 
flopyy_system_init(void)16 int flopyy_system_init(void)
17 {
18     extern int rt_floppy_init(void);
19     return rt_floppy_init();
20 }
21 INIT_ENV_EXPORT(flopyy_system_init);
22 
23 #if defined(RT_USING_DFS_ROMFS)
24 #include <dfs_fs.h>
25 #include <dfs_romfs.h>
26 
mnt_init(void)27 int mnt_init(void)
28 {
29     if (dfs_mount(RT_NULL, "/", "rom", 0, &(romfs_root)) == 0)
30     {
31         LOG_I("root filesystem mounted.");
32     }
33 
34     return 0;
35 }
36 INIT_APP_EXPORT(mnt_init);
37 #endif /* end of RT_USING_DFS_ROMFS */
38 #endif /* end of RT_USING_DFS */
39