aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32/multi/QSPI-MFS/main.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/testhal/STM32/multi/QSPI-MFS/main.c b/testhal/STM32/multi/QSPI-MFS/main.c
index 9a874e47c..870153684 100644
--- a/testhal/STM32/multi/QSPI-MFS/main.c
+++ b/testhal/STM32/multi/QSPI-MFS/main.c
@@ -93,7 +93,6 @@ static THD_FUNCTION(Thread1, arg) {
*/
int main(void) {
mfs_error_t err;
- uint8_t *addr;
/*
* System initializations.
@@ -121,11 +120,8 @@ int main(void) {
/* Mounting the MFS volume defined in the configuration.*/
mfsObjectInit(&mfs);
- mfsStart(&mfs, &mfscfg1);
-
- err = mfsUnmount(&mfs);
+ err = mfsStart(&mfs, &mfscfg1);
err = mfsErase(&mfs);
- err = mfsMount(&mfs);
err = mfsWriteRecord(&mfs, 1, 64, pattern);
err = mfsWriteRecord(&mfs, 2, 64, pattern);
@@ -134,10 +130,9 @@ int main(void) {
err = mfsPerformGarbageCollection(&mfs);
- /* Reading.*/
- flashRead(&m25q, 0, 128, buffer);
+ mfsStop(&mfs);
- err = mfsUnmount(&mfs);
+ (void)err;
/*
* Normal main() thread activity, in this demo it does nothing.