diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-14 13:18:59 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-14 13:18:59 +0000 |
commit | ed415bb76f7563346a3f9b0ba3ef45f9a6898afb (patch) | |
tree | 3444e6eb788fe8be4b98d22ea7cf96a1806d6a9a /testhal/STM32 | |
parent | 1935d28be9747aac18d9338fb1444514d257a51a (diff) | |
download | ChibiOS-ed415bb76f7563346a3f9b0ba3ef45f9a6898afb.tar.gz ChibiOS-ed415bb76f7563346a3f9b0ba3ef45f9a6898afb.tar.bz2 ChibiOS-ed415bb76f7563346a3f9b0ba3ef45f9a6898afb.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10998 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/multi/QSPI-MFS/main.c | 11 |
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.
|