nguyen nam
/
BSP-DISCO_F746NG
Nam
Diff: Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c
- Revision:
- 9:df2ea349c37a
- Parent:
- 8:56384bddaba5
--- 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 */ } /**