diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-06-14 09:26:16 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-06-14 09:26:16 +0000 |
commit | 2d4c475d1d9a67d03193366a6a402d00de7f414a (patch) | |
tree | 3255af82e3afacb3684ec86f61df4c71ff82f823 /testhal | |
parent | 75d0d3d59766c8834305dce0025e27a037b9408d (diff) | |
download | ChibiOS-2d4c475d1d9a67d03193366a6a402d00de7f414a.tar.gz ChibiOS-2d4c475d1d9a67d03193366a6a402d00de7f414a.tar.bz2 ChibiOS-2d4c475d1d9a67d03193366a6a402d00de7f414a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9625 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c b/testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c index ffac546d2..623916957 100644 --- a/testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c +++ b/testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c @@ -110,7 +110,7 @@ int main(void) { m25qStart(&m25q, &m25qcfg1);
/* Reading.*/
- err = flashRead(&m25q, 0, buffer, 128);
+ err = flashRead(&m25q, 0, 128, buffer);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
@@ -126,7 +126,7 @@ int main(void) { chSysHalt("verify erase error");
/* Programming a pattern.*/
- err = flashProgram(&m25q, 0, pattern, 128);
+ err = flashProgram(&m25q, 0, 128, pattern);
if (err != FLASH_NO_ERROR)
chSysHalt("program error");
@@ -143,13 +143,13 @@ int main(void) { /* Reading it back.*/
memset(buffer, 0, 128);
- err = flashRead(&m25q, 16, buffer, 128);
+ err = flashRead(&m25q, 16, 128, buffer);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
/* Reading it back.*/
memset(buffer, 0, 128);
- err = flashRead(&m25q, 0, buffer, 128);
+ err = flashRead(&m25q, 0, 128, buffer);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
|