mnt.c 510 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-5-30 bernard the first version
  9. */
  10. #include <rtthread.h>
  11. #ifdef BSP_USING_SDIO0
  12. #include <dfs_fs.h>
  13. int mnt_init(void)
  14. {
  15. rt_thread_delay(RT_TICK_PER_SECOND);
  16. if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
  17. {
  18. rt_kprintf("file system initialization done!\n");
  19. }
  20. return 0;
  21. }
  22. INIT_ENV_EXPORT(mnt_init);
  23. #endif