rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
storage_mfs.h File Reference

Detailed Description

Date
Jan 3, 2025
Author
Andrey Gusakov

Definition in file storage_mfs.h.

Functions

bool initStorageMfs ()
 

Function Documentation

◆ initStorageMfs()

bool initStorageMfs ( )

Definition at line 125 of file storage_mfs.cpp.

125 {
126 if (boardInitMfs() == false) {
127 return false;
128 }
129
130 const MFSConfig *mfsConfig = boardGetMfsConfig();
131
132 /* MFS */
133 mfsObjectInit(&mfsd, &mfsbuf);
134 mfs_error_t err = mfsStart(&mfsd, mfsConfig);
135 if (err < MFS_NO_ERROR) {
136 efiPrintf("MFS: storage failed to start: %d", err);
137 return false;
138 }
139
140 //addConsoleAction("erasestorage", eraseStorage);
141
142 storageMFS.m_ready = true;
143
145}
bool storageRegisterStorage(StorageType type, SettingStorageBase *storage)
Definition storage.cpp:194
@ STORAGE_MFS_EXT_FLASH
Definition storage.h:40
static NO_CACHE mfs_nocache_buffer_t mfsbuf
bool boardInitMfs(void)
const MFSConfig * boardGetMfsConfig(void)
static MFSDriver mfsd

Referenced by initStorage(), and storageManagerThread().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.