rt-thread/bsp/x86/applications/mnt.c

39 lines
699 B
C
Raw Normal View History

/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*/
#include <rtthread.h>
2021-09-07 20:47:56 +08:00
#define DBG_LEVEL DBG_INFO
#include <rtdbg.h>
2021-09-07 20:47:56 +08:00
#ifdef RT_USING_DFS
#include <dfs.h>
int flopyy_system_init(void)
{
2021-09-07 20:47:56 +08:00
extern int rt_floppy_init(void);
2021-08-22 07:03:16 +08:00
return rt_floppy_init();
}
2021-09-07 20:47:56 +08:00
INIT_ENV_EXPORT(flopyy_system_init);
2021-08-22 07:03:16 +08:00
2021-09-07 20:47:56 +08:00
#if defined(RT_USING_DFS_ROMFS)
#include <dfs_fs.h>
#include <dfs_romfs.h>
int mnt_init(void)
{
if (dfs_mount(RT_NULL, "/", "rom", 0, &(romfs_root)) == 0)
{
LOG_I("root filesystem mounted.");
}
return 0;
}
INIT_APP_EXPORT(mnt_init);
#endif /* end of RT_USING_DFS_ROMFS */
#endif /* end of RT_USING_DFS */