DRESULT disk_write (
BYTE pdrv, /* Physical drive nmuber (0..) */
const BYTE *buff, /* Data to be written */
DWORD sector, /* Sector address (LBA) */
UINT count /* Number of sectors to write (1..128) */
)
DRESULT disk_read (
BYTE pdrv, /* Physical drive nmuber (0..) */
BYTE *buff, /* Data buffer to store read data */
DWORD sector, /* Sector address (LBA) */
UINT count /* Number of sectors to read (1..128) */
)
都有一个输入count,但是SPI flash的文件系统移植中,disk_write中并没有管count这个参数,而是直接将其看作1,也就是直接写入4096个字节 SPI_FLASH_BufferWrite(buff,write_addr,4096);
请问这个不会有问题吗??? |