mnt.c 320 B

1234567891011121314151617181920
  1. #include <rtthread.h>
  2. #ifdef RT_USING_DFS
  3. #include <dfs_fs.h>
  4. int mnt_init(void)
  5. {
  6. if (dfs_mount("W25Q256", "/", "elm", 0, 0) == 0)
  7. {
  8. rt_kprintf("W25Q256 mount successful!\n");
  9. }
  10. else
  11. {
  12. rt_kprintf("W25Q256 mount failed!\n");
  13. }
  14. return 0;
  15. }
  16. INIT_ENV_EXPORT(mnt_init);
  17. #endif