From c3d1d75f50ecfe9ae36f58de67d2baf57be1be39 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 11 May 2016 11:22:46 +0000 Subject: 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 --- testhal/STM32/STM32F3xx/SPI-N25Q128/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testhal/STM32/STM32F3xx') 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); -- cgit v1.2.3