git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11030 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2017-11-18 16:19:37 +00:00
parent ed7adbc766
commit 1780910ebc
2 changed files with 16 additions and 15 deletions

View File

@ -319,7 +319,7 @@ typedef struct {
flash_offset_t used_space;
/**
* @brief Offsets of the most recent instance of the records.
* @note Zero means that ther is not a record with that id.
* @note Zero means that there is not a record with that id.
*/
mfs_record_descriptor_t descriptors[MFS_CFG_MAX_RECORDS];
/**

View File

@ -28,26 +28,27 @@
/* 16MB device, 2 cycles delay after NCS.*/
const QSPIConfig qspicfg1 = {
NULL,
STM32_DCR_FSIZE(24) | STM32_DCR_CSHT(1)
.end_cb = NULL,
.dcr = STM32_DCR_FSIZE(24) | STM32_DCR_CSHT(1)
};
const M25QConfig m25qcfg1 = {
.busp = &QSPID1,
.buscfg = &qspicfg1
};
M25QDriver m25q;
const M25QConfig m25qcfg1 = {
&QSPID1,
&qspicfg1
const MFSConfig mfscfg1 = {
.flashp = (BaseFlash *)&m25q,
.erased = 0xFFFFFFFFU,
.bank_size = 4096U,
.bank0_start = 0U,
.bank0_sectors = 1U,
.bank1_start = 1U,
.bank1_sectors = 1U
};
const MFSConfig mfscfg1 = {
(BaseFlash *)&m25q,
0xFFFFFFFFU,
4096U,
0,
2,
2,
2
};
/*
* LED blinker thread, times are in milliseconds.
*/