26#include "fatfs/source/ff.h" 
   29#ifndef FATFS_YEAR_OFFSET 
   31#define FATFS_YEAR_OFFSET (1980) 
   35#define EPOCH_YEAR_OFFSET (1970) 
   38#define FATFS_MAX_VOL_STR_LEN (6) 
   41#define FATFS_MOUNT_OPT       (1) 
   44#ifndef CONFIG_FATFS_FORMAT_TYPE 
   46#define CONFIG_FATFS_FORMAT_TYPE    FM_EXFAT 
   48#define CONFIG_FATFS_FORMAT_TYPE    FM_ANY 
   61#ifndef CONFIG_FATFS_FORMAT_ALLOC_STATIC 
   62#define CONFIG_FATFS_FORMAT_ALLOC_STATIC    0 
   71#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.