From a0ac1284060d45ae73e845930a2af93411397a9d Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sun, 28 Jun 2020 18:17:13 +0300 Subject: [PATCH] Use original fatFS lib --- FatFs/diskio.h | 2 -- FatFs/ff.c | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/FatFs/diskio.h b/FatFs/diskio.h index 29f951e..e4ead78 100644 --- a/FatFs/diskio.h +++ b/FatFs/diskio.h @@ -30,8 +30,6 @@ DSTATUS disk_initialize (BYTE pdrv); DSTATUS disk_status (BYTE pdrv); DRESULT disk_read (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count); DRESULT disk_write (BYTE pdrv, const BYTE* buff, LBA_t sector, UINT count); -DRESULT disk_sync (BYTE pdrv); - DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff); diff --git a/FatFs/ff.c b/FatFs/ff.c index f82d029..7e6cfac 100644 --- a/FatFs/ff.c +++ b/FatFs/ff.c @@ -684,11 +684,11 @@ static void st_qword (BYTE* ptr, QWORD val) /* Store an 8-byte word in little-en *ptr++ = (BYTE)val; val >>= 8; *ptr++ = (BYTE)val; } - #endif #endif /* !FF_FS_READONLY */ -#endif +#endif /* _WORD_ACCESS */ + /*-----------------------------------------------------------------------*/ /* String functions */ @@ -3323,6 +3323,7 @@ static UINT check_fs ( /* 0:FAT VBR, 1:exFAT VBR, 2:Valid BS but not FAT, 3:Inva return 2; /* Valid BS but not FAT */ } + /* Find an FAT volume */ /* (It supports only generic partitioning rules, MBR, GPT and SFD) */