main.c 468 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <dfs_fs.h>
  12. #include <rtthread.h>
  13. int main(int argc, char** argv)
  14. {
  15. #ifdef RT_USING_DFS
  16. if(dfs_mount("flash0", "/", "efm", 0, 0) == 0)
  17. {
  18. rt_kprintf("mount efm ok\n");
  19. }
  20. else
  21. {
  22. rt_kprintf("mount efm fail\n");
  23. }
  24. #endif
  25. }