Made FS structure non-cacheable.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15803 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-09-27 09:34:34 +00:00
parent 782aaee906
commit fca1f5c791
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ static void tmr_init(void *p) {
/**
* @brief FS object.
*/
static FATFS SDC_FS;
static FATFS __nocache_fs;
/* FS mounted and ready.*/
static bool fs_ready = FALSE;
@ -215,7 +215,7 @@ static void InsertHandler(eventid_t id) {
#endif
return;
err = f_mount(&SDC_FS, "/", 1);
err = f_mount(&__nocache_fs, "/", 1);
if (err != FR_OK) {
#if HAL_USE_SDC
sdcDisconnect(&PORTAB_SDC1);