Skip to content

Commit

Permalink
Revert dma cache changes
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion committed Aug 31, 2023
1 parent c113c1b commit cc19be8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions targets/ChibiOS/_FatFS/fatfs_diskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ DRESULT disk_read(
return RES_ERROR;
}
// invalidate cache over read buffer to ensure that content from DMA is read
// cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
dmaCacheInvalidate(buff, MMCSD_BLOCK_SIZE * count);
cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
return RES_OK;
}
return RES_PARERR;
Expand Down Expand Up @@ -138,8 +137,7 @@ DRESULT disk_write(
return RES_ERROR;
}
// invalidate cache on buffer
// cacheBufferFlush(buff, count);
dmaBufferFlush(buff, count);
cacheBufferFlush(buff, count);
return RES_OK;
}
return RES_PARERR;
Expand Down

0 comments on commit cc19be8

Please sign in to comment.