rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
board_storage.cpp File Reference

Functions

bool boardInitMfs ()
 
const MFSConfig * boardGetMfsConfig ()
 

Variables

static NO_CACHE SNORDriver snor1
 
static NO_CACHE snor_nocache_buffer_t snor1buf
 
const WSPIConfig WSPIcfg1
 
const SNORConfig snorcfg1
 
const MFSConfig mfsd_nor_config
 

Function Documentation

◆ boardGetMfsConfig()

const MFSConfig * boardGetMfsConfig ( void  )

Definition at line 57 of file board_storage.cpp.

58{
59 return &mfsd_nor_config;
60}
const MFSConfig mfsd_nor_config

Referenced by initStorageMfs().

Here is the caller graph for this function:

◆ boardInitMfs()

bool boardInitMfs ( void  )

Definition at line 45 of file board_storage.cpp.

46{
47#if SNOR_SHARED_BUS == FALSE
48 wspiStart(&WSPID1, &WSPIcfg1);
49#endif
50 /* Initializing and starting snor1 driver.*/
51 snorObjectInit(&snor1, &snor1buf);
52 snorStart(&snor1, &snorcfg1);
53
54 return true;
55}
static NO_CACHE SNORDriver snor1
static NO_CACHE snor_nocache_buffer_t snor1buf
const WSPIConfig WSPIcfg1
const SNORConfig snorcfg1

Referenced by initStorageMfs().

Here is the caller graph for this function:

Variable Documentation

◆ mfsd_nor_config

const MFSConfig mfsd_nor_config
Initial value:
= {
.flashp = (BaseFlash *)&snor1,
.erased = 0xFFFFFFFFU,
.bank_size = 64 * 1024U,
.bank0_start = 0U,
.bank0_sectors = 128U,
.bank1_start = 128U,
.bank1_sectors = 128U
}

Definition at line 35 of file board_storage.cpp.

35 {
36 .flashp = (BaseFlash *)&snor1,
37 .erased = 0xFFFFFFFFU,
38 .bank_size = 64 * 1024U,
39 .bank0_start = 0U,
40 .bank0_sectors = 128U, /* 128 * 4 K = 0.5 Mb */
41 .bank1_start = 128U,
42 .bank1_sectors = 128U
43};

◆ snor1

NO_CACHE SNORDriver snor1
static

Definition at line 20 of file board_storage.cpp.

◆ snor1buf

NO_CACHE snor_nocache_buffer_t snor1buf
static

Definition at line 21 of file board_storage.cpp.

◆ snorcfg1

const SNORConfig snorcfg1
Initial value:
= {
.busp = &WSPID1,
.buscfg = &WSPIcfg1
}

Definition at line 30 of file board_storage.cpp.

30 {
31 .busp = &WSPID1,
32 .buscfg = &WSPIcfg1
33};

Referenced by boardInitMfs().

◆ WSPIcfg1

const WSPIConfig WSPIcfg1
Initial value:
= {
.end_cb = NULL,
.error_cb = NULL,
.dcr = STM32_DCR_FSIZE(23U) |
STM32_DCR_CSHT(1U)
}

Definition at line 23 of file board_storage.cpp.

23 {
24 .end_cb = NULL,
25 .error_cb = NULL,
26 .dcr = STM32_DCR_FSIZE(23U) | /* 8MB device. */
27 STM32_DCR_CSHT(1U) /* NCS 2 cycles delay. */
28};

Referenced by boardInitMfs().

Go to the source code of this file.