STM32Cube BSP FW for STM32F769I-Discovery

Dependents:   mbed-os-example-blinky-5 DISCO-F769NI_TOUCHSCREEN_demo_custom_1 Datarecorder2 DISCO-F769NI_TOUCHSCREEN_demo ... more

Revision:
3:145e714557cf
Parent:
1:3e58f8a39705
Child:
4:72a949940ad6
Child:
6:05b81d60cdae
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c	Thu Mar 23 10:42:33 2017 +0100
+++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c	Thu Jul 06 16:48:52 2017 +0200
@@ -66,6 +66,7 @@
 
 /* Includes ------------------------------------------------------------------*/
 #include "stm32f769i_discovery_qspi.h"
+#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms
 
 /** @addtogroup BSP
   * @{
@@ -657,7 +658,7 @@
   }
 
   /* After reset CMD, 1000ms requested if QSPI memory SWReset occured during full chip erase operation */
-  HAL_Delay( 1000 );
+  wait_ms( 1000 );
 
   /* Configure automatic polling mode to wait the WIP bit=0 */
   s_config.Match           = 0;
@@ -761,7 +762,7 @@
   }
   
   /* 40ms  Write Status/Configuration Register Cycle Time */
-  HAL_Delay( 40 );  
+  wait_ms( 40 );  
 
   return QSPI_OK;
 }
@@ -899,7 +900,7 @@
   }
   
   /* 40ms  Write Status/Configuration Register Cycle Time */
-  HAL_Delay( 40 );  
+  wait_ms( 40 );  
   
   return QSPI_OK;
 }