Nam

Dependencies:   mbed

Dependents:   uSD LCD

Revision:
9:df2ea349c37a
Parent:
8:56384bddaba5
diff -r 56384bddaba5 -r df2ea349c37a Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c
--- a/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c	Thu Feb 23 14:14:09 2017 +0100
+++ b/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c	Thu Jul 06 16:58:50 2017 +0200
@@ -95,6 +95,8 @@
 /* Includes ------------------------------------------------------------------*/
 #include "stm32746g_discovery_audio.h"
 
+void wait_ms(int ms); // MBED to replace HAL_Delay function
+
 /** @addtogroup BSP
   * @{
   */
@@ -324,7 +326,7 @@
     if(Option == CODEC_PDWN_HW)
     { 
       /* Wait at least 100us */
-      HAL_Delay(1);
+      wait_ms(1);
     }
     /* Return AUDIO_OK when all operations are correctly done */
     return AUDIO_OK;
@@ -1010,7 +1012,7 @@
     if(Option == CODEC_PDWN_HW)
     {
       /* Wait at least 100us */
-      HAL_Delay(1);
+      wait_ms(1);
     }
     /* Return AUDIO_OK when all operations are correctly done */
     return AUDIO_OK;