[bsp][bluetrum] delet romfs.c

This commit is contained in:
greedyhao 2021-01-21 16:07:49 +08:00
parent 52f547f56a
commit 13708b9cda
2 changed files with 1 additions and 39 deletions

View File

@ -1,6 +1,6 @@
#include <rtthread.h>
#if 1
#include <rtthread.h>
#ifdef BSP_USING_SDIO
@ -51,24 +51,3 @@ int ab32_sdcard_mount(void)
}
INIT_APP_EXPORT(ab32_sdcard_mount);
#endif
#else
#include <dfs_fs.h>
#include "dfs_romfs.h"
int mnt_init(void)
{
if (dfs_mount(RT_NULL, "/", "rom", 0, &(romfs_root)) == 0)
{
rt_kprintf("ROM file system initializated!\n");
}
else
{
rt_kprintf("ROM file system initializate failed!\n");
}
return 0;
}
INIT_ENV_EXPORT(mnt_init);
#endif

View File

@ -1,17 +0,0 @@
/* Generated by mkromfs. Edit with caution. */
#include <rtthread.h>
#ifdef RT_USING_DFS_ROMFS
#include <dfs_romfs.h>
static const struct romfs_dirent _romfs_root[] = {
{ROMFS_DIRENT_FILE, "ab32vg1", RT_NULL, 0}
};
const struct romfs_dirent romfs_root = {
ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_romfs_root, sizeof(_romfs_root)/sizeof(_romfs_root[0])
};
#endif