27#include "fatfs/source/ff.h"
30#ifndef FATFS_YEAR_OFFSET
32#define FATFS_YEAR_OFFSET (1980)
36#define EPOCH_YEAR_OFFSET (1970)
39#define FATFS_MAX_VOL_STR_LEN (6)
42#define FATFS_MOUNT_OPT (1)
45#ifndef CONFIG_FATFS_FORMAT_TYPE
47#define CONFIG_FATFS_FORMAT_TYPE FM_EXFAT
49#define CONFIG_FATFS_FORMAT_TYPE FM_ANY
62#ifndef CONFIG_FATFS_FORMAT_ALLOC_STATIC
63#define CONFIG_FATFS_FORMAT_ALLOC_STATIC 0
72#define FATFS_MAX_ABS_PATH_SIZE (FATFS_MAX_VOL_STR_LEN + VFS_NAME_MAX + 1)
struct fatfs_desc fatfs_desc_t
FatFs instance descriptor.
struct fatfs_file_desc fatfs_file_desc_t
FatFs file instance descriptor.
const vfs_file_system_t fatfs_file_system
The FatFs vfs driver, a pointer to a fatfs_desc_t must be provided as vfs_mountp::private_data.
#define FATFS_MAX_ABS_PATH_SIZE
Size of path buffer for absolute paths.
#define VFS_NAME_MAX
Maximum length of the name in a vfs_dirent_t (not including terminating null)
FatFs instance descriptor.
uint8_t vol_idx
low level device that is used by FatFs
char abs_path_str_buff[FATFS_MAX_ABS_PATH_SIZE]
most FatFs file operations need an absolute path.
FATFS fat_fs
FatFs work area needed for each volume.
mtd_dev_t * dev
MTD device to use.
FatFs file instance descriptor.
char fname[VFS_NAME_MAX+1]
name of the file (e.g.
FIL file
FatFs work area for a single file.