aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-05-10 12:42:21 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-05-10 12:42:21 +0000
commit7d7a7482c184ff44780f7504d48b86fb24b3fb53 (patch)
tree41bec205c121380413432b4caffdeaa83e580ccf /testhal/STM32
parent0deff4750e9aa70a01c5c7db6aeb3f32024df352 (diff)
downloadChibiOS-7d7a7482c184ff44780f7504d48b86fb24b3fb53.tar.gz
ChibiOS-7d7a7482c184ff44780f7504d48b86fb24b3fb53.tar.bz2
ChibiOS-7d7a7482c184ff44780f7504d48b86fb24b3fb53.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9456 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32F3xx/SPI-N25Q128/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
index c8ca4aaa4..41c8541e2 100644
--- a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
+++ b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
@@ -129,10 +129,10 @@ int main(void) {
err = flashRead(&flash, 0, buffer, 128);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
- err = flashEraseSectors(&flash, 0, 1);
+ err = flashEraseSector(&flash, 0);
if (err != FLASH_NO_ERROR)
chSysHalt("erase error");
- err = flashVerifyErase(&flash, 0, 1);
+ err = flashVerifyErase(&flash, 0);
if (err != FLASH_NO_ERROR)
chSysHalt("verify erase error");
err = flashRead(&flash, 0, buffer, 128);