rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
config
boards
at_start_f435
board_storage.cpp
Go to the documentation of this file.
1
/**
2
* @file boards/subaru_eg33/board_storage.h
3
*
4
* @brief Storage configuration file
5
*
6
* @date Nov 03, 2023
7
* @author Andrey Gusakov, 2023
8
*/
9
10
#include "
pch.h
"
11
12
/* This board stores settings in internal flash bank 2 */
13
#if EFI_STORAGE_MFS == TRUE
14
15
#include "hal_mfs.h"
16
17
/* use 128K + 128K on bank 2 for settings */
18
const
MFSConfig
mfscfg1
= {
19
.flashp = (BaseFlash *)&EFLD2,
20
.erased = 0xFFFFFFFFU,
21
.bank_size = 128U * 1024U,
22
.bank0_start = 0U,
23
.bank0_sectors = 32U,
24
.bank1_start = 32U,
25
.bank1_sectors = 32U
26
};
27
28
bool
boardInitMfs
()
29
{
30
/* Starting EFL driver.*/
31
eflStart(&EFLD2, NULL);
32
33
return
true
;
34
}
35
36
const
MFSConfig *
boardGetMfsConfig
()
37
{
38
return
&
mfscfg1
;
39
}
40
41
#endif
/* EFI_STORAGE_MFS == TRUE */
mfscfg1
const MFSConfig mfscfg1
Definition
board_storage.cpp:18
boardInitMfs
bool boardInitMfs()
Definition
board_storage.cpp:28
boardGetMfsConfig
const MFSConfig * boardGetMfsConfig()
Definition
board_storage.cpp:36
pch.h
Generated on Sat Sep 27 2025 00:10:04 for rusEFI by
1.9.8