diff options
author | inmarket <andrewh@inmarket.com.au> | 2017-10-02 11:26:54 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2017-10-02 11:26:54 +1000 |
commit | 8bf95a11284974df0d9ea5dd653367e73a175fc3 (patch) | |
tree | bc9170f067cbf238bd29be2eb9636c8214014c01 /src/gfile/gfile_petitfs_diskio_chibios.c | |
parent | 989b12608f4ca5ebcd8f1abefdb655c603aafc96 (diff) | |
download | uGFX-8bf95a11284974df0d9ea5dd653367e73a175fc3.tar.gz uGFX-8bf95a11284974df0d9ea5dd653367e73a175fc3.tar.bz2 uGFX-8bf95a11284974df0d9ea5dd653367e73a175fc3.zip |
Add cache flushing to the ChibiOS FATFS/PETITFS block routines. Required for STM32F7. This should really be in the ChibiOS DMA routines.
Diffstat (limited to 'src/gfile/gfile_petitfs_diskio_chibios.c')
-rw-r--r-- | src/gfile/gfile_petitfs_diskio_chibios.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gfile/gfile_petitfs_diskio_chibios.c b/src/gfile/gfile_petitfs_diskio_chibios.c index d313e695..d7ef02aa 100644 --- a/src/gfile/gfile_petitfs_diskio_chibios.c +++ b/src/gfile/gfile_petitfs_diskio_chibios.c @@ -71,7 +71,8 @@ DRESULT disk_readp ( if (sdcRead(&SDCD1, sector, sectBuf, 1)) return RES_ERROR; #endif - sectpos = sector; + sectpos = sector; + dmaBufferInvalidate(sectBuf, sizeof(sectBuf)); } memcpy(buff, sectBuf + offset, count); return RES_OK; |