AP_Filesystem_FATFS.h 407 B

12345678910111213141516171819202122232425
  1. /*
  2. FATFS backend for AP_Filesystem
  3. */
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <fcntl.h>
  7. #include <errno.h>
  8. #include <stddef.h>
  9. #include <ff.h>
  10. // Seek offset macros
  11. #define SEEK_SET 0
  12. #define SEEK_CUR 1
  13. #define SEEK_END 2
  14. #if FF_USE_LFN != 0
  15. #define MAX_NAME_LEN FF_MAX_LFN
  16. #else
  17. #define MAX_NAME_LEN 13
  18. #endif
  19. struct dirent {
  20. char d_name[MAX_NAME_LEN]; /* filename */
  21. };