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_lcd.c	Thu Mar 23 10:42:33 2017 +0100
+++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_lcd.c	Thu Jul 06 16:48:52 2017 +0200
@@ -1,4 +1,4 @@
-/**
+	/**
   ******************************************************************************
   * @file    stm32f769i_discovery_lcd.c
   * @author  MCD Application Team
@@ -74,6 +74,7 @@
 
 /* Includes ------------------------------------------------------------------*/
 #include "stm32f769i_discovery_lcd.h"
+#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms
 #include "../../../Utilities/Fonts/fonts.h"
 //#include "../../../Utilities/Fonts/font24.c" // patch for MBED
 //#include "../../../Utilities/Fonts/font20.c" // patch for MBED
@@ -681,13 +682,13 @@
     /* Activate XRES active low */
     HAL_GPIO_WritePin(GPIOJ, GPIO_PIN_15, GPIO_PIN_RESET);
 
-    HAL_Delay(20); /* wait 20 ms */
+    wait_ms(20); /* wait 20 ms */
 
     /* Desactivate XRES */
     HAL_GPIO_WritePin(GPIOJ, GPIO_PIN_15, GPIO_PIN_SET);
     
     /* Wait for 10ms after releasing XRES before sending commands */
-    HAL_Delay(10);
+    wait_ms(10);
 }
 
 /**