5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-16 05:38:28 -04:00
ardupilot/libraries/AP_Filesystem/AP_Filesystem_FATFS.h

26 lines
407 B
C
Raw Normal View History

/*
FATFS backend for AP_Filesystem
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stddef.h>
#include <ff.h>
// Seek offset macros
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#if FF_USE_LFN != 0
#define MAX_NAME_LEN FF_MAX_LFN
#else
#define MAX_NAME_LEN 13
#endif
struct dirent {
char d_name[MAX_NAME_LEN]; /* filename */
};