mnt.c 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**************************************************************************//**
  2. *
  3. * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2020-8-26 Wayne First version
  10. *
  11. ******************************************************************************/
  12. #include <rtthread.h>
  13. #define LOG_TAG "mnt"
  14. #define DBG_ENABLE
  15. #define DBG_SECTION_NAME "mnt"
  16. #define DBG_LEVEL DBG_ERROR
  17. #define DBG_COLOR
  18. #include <rtdbg.h>
  19. #include <dfs_fs.h>
  20. #include <dfs_file.h>
  21. #include <unistd.h>
  22. #include <stdio.h>
  23. #include <sys/stat.h>
  24. #include <sys/statfs.h>
  25. #ifdef RT_USING_DFS_MNTTABLE
  26. /*
  27. const char *device_name;
  28. const char *path;
  29. const char *filesystemtype;
  30. unsigned long rwflag;
  31. const void *data;
  32. */
  33. const struct dfs_mount_tbl mount_table[] =
  34. {
  35. { "sd0", "/", "elm", 0, RT_NULL },
  36. {0},
  37. };
  38. #endif