aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-18 16:19:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-18 16:19:37 +0000
commit1780910ebcd2c59d9c22d1f46317a8e1a55d9aad (patch)
treee2fcc88b47dc1fff558dd2259630bf371040847d /testhal/STM32
parented7adbc766d817a6915c1279fc9dbe2f7c0f4567 (diff)
downloadChibiOS-1780910ebcd2c59d9c22d1f46317a8e1a55d9aad.tar.gz
ChibiOS-1780910ebcd2c59d9c22d1f46317a8e1a55d9aad.tar.bz2
ChibiOS-1780910ebcd2c59d9c22d1f46317a8e1a55d9aad.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11030 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/multi/QSPI-MFS/main.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/testhal/STM32/multi/QSPI-MFS/main.c b/testhal/STM32/multi/QSPI-MFS/main.c
index e468c39f3..0be2a81e6 100644
--- a/testhal/STM32/multi/QSPI-MFS/main.c
+++ b/testhal/STM32/multi/QSPI-MFS/main.c
@@ -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)
};
-M25QDriver m25q;
-
const M25QConfig m25qcfg1 = {
- &QSPID1,
- &qspicfg1
+ .busp = &QSPID1,
+ .buscfg = &qspicfg1
};
+M25QDriver m25q;
+
const MFSConfig mfscfg1 = {
- (BaseFlash *)&m25q,
- 0xFFFFFFFFU,
- 4096U,
- 0,
- 2,
- 2,
- 2
+ .flashp = (BaseFlash *)&m25q,
+ .erased = 0xFFFFFFFFU,
+ .bank_size = 4096U,
+ .bank0_start = 0U,
+ .bank0_sectors = 1U,
+ .bank1_start = 1U,
+ .bank1_sectors = 1U
};
+
/*
* LED blinker thread, times are in milliseconds.
*/