bdk: sdmmc: add defines for max block number

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:54:06 +01:00
1 parent facd5c9ae9
commit 61cb77a016
3 files changed
+5 -3

No files matched your search

+2 -2
View File
@@ -1008,8 +1008,8 @@ static int _sdmmc_config_sdma(sdmmc_t *sdmmc, u32 *blkcnt_out, const sdmmc_req_t
return 0;
u32 blkcnt = req->num_sectors;
if (blkcnt >= 0xFFFF)
blkcnt = 0xFFFF;
if (blkcnt >= SDMMC_HMAX_BLOCKNUM)
blkcnt = SDMMC_HMAX_BLOCKNUM;
u32 admaaddr = (u32)req->buf;
// Check alignment.