17 #ifdef YOTTA_CFG_FS_FATFS 23 extern fs_dev_t fatfs_dev;
25 int fatfs_mount(fs_mount_t *mnt);
26 int fatfs_unmount(fs_mount_t *mnt);
27 int fatfs_open(
struct _reent *r,
const char *path,
int flags,
int mode, fs_fd_t *fd_out);
28 int fatfs_close(
struct _reent *r, fs_fd_t *fd);
29 long fatfs_write(
struct _reent *r, fs_fd_t *fd,
const char *ptr,
int len);
30 long fatfs_read(
struct _reent *r, fs_fd_t *fd,
char *ptr,
int len);
31 _off_t fatfs_lseek(
struct _reent *r, fs_fd_t *fd, _off_t pos,
int dir);
32 int fatfs_sync(
struct _reent *r, fs_fd_t *fd);
33 int fatfs_fstat(
struct _reent *r, fs_fd_t *fd,
struct stat *st);
34 int fatfs_stat(
struct _reent *r,
char *path,
struct stat *st);
35 int fatfs_unlink(
struct _reent *r,
char *path);
37 int fatfs_opendir(fs_dir_t *out,
const char *path);
38 int fatfs_readdir(fs_dir_t *dir, fs_info_t *info);
39 int fatfs_closedir(fs_dir_t *dir);