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:
parent
782aaee906
commit
fca1f5c791
|
@ -112,7 +112,7 @@ static void tmr_init(void *p) {
|
||||||
/**
|
/**
|
||||||
* @brief FS object.
|
* @brief FS object.
|
||||||
*/
|
*/
|
||||||
static FATFS SDC_FS;
|
static FATFS __nocache_fs;
|
||||||
|
|
||||||
/* FS mounted and ready.*/
|
/* FS mounted and ready.*/
|
||||||
static bool fs_ready = FALSE;
|
static bool fs_ready = FALSE;
|
||||||
|
@ -215,7 +215,7 @@ static void InsertHandler(eventid_t id) {
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
|
|
||||||
err = f_mount(&SDC_FS, "/", 1);
|
err = f_mount(&__nocache_fs, "/", 1);
|
||||||
if (err != FR_OK) {
|
if (err != FR_OK) {
|
||||||
#if HAL_USE_SDC
|
#if HAL_USE_SDC
|
||||||
sdcDisconnect(&PORTAB_SDC1);
|
sdcDisconnect(&PORTAB_SDC1);
|
||||||
|
|
Loading…
Reference in New Issue