严格代码检查,修复大量错误,以及diskio.c ioctl参数大小导致的卡死问题

This commit is contained in:
zhangzheng
2025-03-23 17:35:56 +08:00
parent 749e24ddb7
commit 54b6bc9c24
139 changed files with 1317 additions and 1077 deletions

View File

@@ -150,7 +150,7 @@ DRESULT disk_ioctl(
*(DWORD *)buff = FLASH_SECTOR_COUNT;
return RES_OK;
case GET_SECTOR_SIZE: // sector size, 传入block size(SD),单位bytes
*(DWORD *)buff = FLASH_SECTOR_SIZE;
*(WORD *)buff = FLASH_SECTOR_SIZE;
return RES_OK;
case GET_BLOCK_SIZE: // block size, 由上文可得对于SD2.0卡最大8192最小 1
*(DWORD *)buff = FLASH_BLOCK_SIZE; // 单位为 sector(FatFs)