bdk: sdmmc: utilize block size defines

This commit is contained in:
CTCaer
2024-03-12 15:47:14 +02:00
parent 25b7ffecd1
commit f126486266
5 changed files with 24 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ void* ff_memalloc ( /* Returns pointer to the allocated memory block (null if no
)
{
// Ensure size is aligned to SDMMC block size.
return malloc(ALIGN(msize, 512)); /* Allocate a new memory block with POSIX API */
return malloc(ALIGN(msize, SDMMC_DAT_BLOCKSIZE)); /* Allocate a new memory block with POSIX API */
}