mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-16 17:18:56 +00:00
v1.2.2
This commit is contained in:
@@ -876,7 +876,7 @@ DSTATUS disk_status(BYTE drv)
|
||||
}
|
||||
|
||||
/* Read Sector(s) */
|
||||
DRESULT disk_read(BYTE drv, BYTE *buff, DWORD sector, UINT count)
|
||||
DRESULT disk_read(BYTE drv, BYTE *buff, LBA_t sector, UINT count)
|
||||
{
|
||||
rt_size_t result;
|
||||
rt_device_t device = disk[drv];
|
||||
@@ -891,7 +891,7 @@ DRESULT disk_read(BYTE drv, BYTE *buff, DWORD sector, UINT count)
|
||||
}
|
||||
|
||||
/* Write Sector(s) */
|
||||
DRESULT disk_write(BYTE drv, const BYTE *buff, DWORD sector, UINT count)
|
||||
DRESULT disk_write(BYTE drv, const BYTE *buff, LBA_t sector, UINT count)
|
||||
{
|
||||
rt_size_t result;
|
||||
rt_device_t device = disk[drv];
|
||||
|
||||
@@ -233,7 +233,11 @@
|
||||
/ GET_SECTOR_SIZE command. */
|
||||
|
||||
|
||||
#ifdef RT_DFS_ELM_USE_EXFAT
|
||||
#define FF_LBA64 1
|
||||
#else
|
||||
#define FF_LBA64 0
|
||||
#endif
|
||||
/* This option switches support for 64-bit LBA. (0:Disable or 1:Enable)
|
||||
/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user