Files
luban-lite-t3e-pro/packages/third-party/dfs/filesystems/romfs/romfs.c

27 lines
615 B
C
Raw Normal View History

2023-08-30 16:21:18 +08:00
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
2023-11-09 20:19:51 +08:00
#include <dfs_bare.h>
2023-08-30 16:21:18 +08:00
#include <dfs_romfs.h>
2023-11-09 20:19:51 +08:00
const struct romfs_dirent _root_dirent[] =
2023-08-30 16:21:18 +08:00
{
2023-11-09 20:19:51 +08:00
{ROMFS_DIRENT_DIR, "ram", NULL, 0},
{ROMFS_DIRENT_DIR, "data", NULL, 0},
{ROMFS_DIRENT_DIR, "rodata", NULL, 0},
{ROMFS_DIRENT_DIR, "sdcard", NULL, 0},
{ROMFS_DIRENT_DIR, "udisk", NULL, 0},
2023-08-30 16:21:18 +08:00
};
2023-11-09 20:19:51 +08:00
const struct romfs_dirent romfs_root =
2023-08-30 16:21:18 +08:00
{
2023-11-09 20:19:51 +08:00
ROMFS_DIRENT_DIR, "/", (unsigned char *)_root_dirent, sizeof(_root_dirent) / sizeof(_root_dirent[0])
2023-08-30 16:21:18 +08:00
};