Without definitions for BSP_CAMERA_IRQHandler and BSP_CAMERA_DMA_IRQHandler methods, DCMI IRQs were not being serviced by HAL_DCMI_IRQHandler. This broke the IRQ-based DCMI API.
Diff: Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c
- Revision:
- 9:df2ea349c37a
- Parent:
- 8:56384bddaba5
- Child:
- 10:b70ba9b9345e
diff -r 56384bddaba5 -r df2ea349c37a Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c --- 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 */ } /**