summaryrefslogtreecommitdiffstatsabout
path: root/SylixOS
diff options
context:
space:
mode:
authorHanhui <hanhui@acoinfo.com>2020-09-17 12:27:54 (GMT)
committer Hanhui <hanhui@acoinfo.com>2020-09-17 12:27:54 (GMT)
commit2d910c188501c42c927dfd90efd0843a5ff6497b (patch)
tree92aea47dfbb6338344c932cff74954e19b4cffe0 /SylixOS
parentfa51d81059cd5996bbc34cc97b487b366ee80c5d (diff)
downloadlibsylixos-2d910c188501c42c927dfd90efd0843a5ff6497b.zip
libsylixos-2d910c188501c42c927dfd90efd0843a5ff6497b.tar.gz
libsylixos-2d910c188501c42c927dfd90efd0843a5ff6497b.tar.bz2
SD burst buffer need page alignment.
Diffstat (limited to 'SylixOS')
-rw-r--r--SylixOS/system/device/sdcard/client/sdmemoryDrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SylixOS/system/device/sdcard/client/sdmemoryDrv.c b/SylixOS/system/device/sdcard/client/sdmemoryDrv.c
index 27e6222..126fb6c 100644
--- a/SylixOS/system/device/sdcard/client/sdmemoryDrv.c
+++ b/SylixOS/system/device/sdcard/client/sdmemoryDrv.c
@@ -133,7 +133,7 @@ static INT __sdmemDevCreate (SD_DRV *psddrv, PLW_SDCORE_DEVICE psdcoredev, VOID
dcattrl.DCATTR_pvCacheMem = LW_NULL;
dcattrl.DCATTR_stMemSize = (size_t)lCacheSize;
- dcattrl.DCATTR_iBurstOpt = 0;
+ dcattrl.DCATTR_iBurstOpt = LW_DCATTR_BOPT_PAGE_ALIGN;
dcattrl.DCATTR_iMaxRBurstSector = (INT)lSectorBurst;
dcattrl.DCATTR_iMaxWBurstSector = (INT)(lSectorBurst << 1);
dcattrl.DCATTR_iMsgCount = 4;