aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-05-11 11:22:46 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-05-11 11:22:46 +0000
commitc3d1d75f50ecfe9ae36f58de67d2baf57be1be39 (patch)
tree5058c433916b6f3bc21914ec12ea0d14d3a5f474 /testhal/STM32/STM32F3xx
parentc9387af734393984b01a356314ed856e699cde93 (diff)
downloadChibiOS-c3d1d75f50ecfe9ae36f58de67d2baf57be1be39.tar.gz
ChibiOS-c3d1d75f50ecfe9ae36f58de67d2baf57be1be39.tar.bz2
ChibiOS-c3d1d75f50ecfe9ae36f58de67d2baf57be1be39.zip
Added smart polling and preparation for erase suspend.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9463 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F3xx')
-rw-r--r--testhal/STM32/STM32F3xx/SPI-N25Q128/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
index 41c8541e2..021939419 100644
--- a/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
+++ b/testhal/STM32/STM32F3xx/SPI-N25Q128/main.c
@@ -129,7 +129,7 @@ int main(void) {
err = flashRead(&flash, 0, buffer, 128);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
- err = flashEraseSector(&flash, 0);
+ err = flashStartEraseSector(&flash, 0);
if (err != FLASH_NO_ERROR)
chSysHalt("erase error");
err = flashVerifyErase(&flash, 0);