No changes made

Fork of BSP_DISCO_F746NG by ST

Files at this revision

API Documentation at this revision

Comitter:
Jerome Coutant
Date:
Thu Jul 06 16:58:50 2017 +0200
Parent:
9:56384bddaba5
Commit message:
replace HAL_Delay by wait_ms

Changed in this revision

Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c Show annotated file Show diff for this revision Revisions of this file
Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- a/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c	Thu Feb 23 14:14:09 2017 +0100
+++ b/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c	Thu Jul 06 16:58:50 2017 +0200
@@ -64,6 +64,8 @@
 #include "stm32746g_discovery_camera.h"
 #include "stm32746g_discovery.h"
 
+void wait_ms(int ms); // MBED to replace HAL_Delay function
+
 /** @addtogroup BSP
   * @{
   */
@@ -298,7 +300,7 @@
   /* De-assert the camera POWER_DOWN pin (active high) */
   HAL_GPIO_WritePin(GPIOH, GPIO_PIN_13, GPIO_PIN_RESET);
 
-  HAL_Delay(3);     /* POWER_DOWN de-asserted during 3ms */
+  wait_ms(3);     /* POWER_DOWN de-asserted during 3ms */
 }
 
 /**