romfs.c 664 B

123456789101112131415161718
  1. #include <dfs_romfs.h>
  2. const static unsigned char _dummy_dummy_txt[] = {
  3. 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x21, 0x0d,
  4. 0x0a, };
  5. const static struct romfs_dirent _dummy[] = {
  6. {ROMFS_DIRENT_FILE, "dummy.txt", _dummy_dummy_txt, sizeof(_dummy_dummy_txt)},
  7. };
  8. const static unsigned char _dummy_txt[] = {
  9. 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x21, 0x0d,
  10. 0x0a, };
  11. const struct romfs_dirent romfs_root[] = {
  12. {ROMFS_DIRENT_DIR, "dummy", _dummy, sizeof(_dummy)/sizeof(_dummy[0])},
  13. {ROMFS_DIRENT_FILE, "dummy.txt", _dummy_txt, sizeof(_dummy_txt)},
  14. };