From 2d4c475d1d9a67d03193366a6a402d00de7f414a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 14 Jun 2016 09:26:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9625 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32L4xx/QSPI-N25Q128/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testhal') 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"); -- cgit v1.2.3