We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c113c1b commit cc19be8Copy full SHA for cc19be8
targets/ChibiOS/_FatFS/fatfs_diskio.c
@@ -108,8 +108,7 @@ DRESULT disk_read(
108
return RES_ERROR;
109
}
110
// invalidate cache over read buffer to ensure that content from DMA is read
111
- // cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
112
- dmaCacheInvalidate(buff, MMCSD_BLOCK_SIZE * count);
+ cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
113
return RES_OK;
114
115
return RES_PARERR;
@@ -138,8 +137,7 @@ DRESULT disk_write(
138
137
139
140
// invalidate cache on buffer
141
- // cacheBufferFlush(buff, count);
142
- dmaBufferFlush(buff, count);
+ cacheBufferFlush(buff, count);
143
144
145
0 commit comments