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:
- 10:b70ba9b9345e
- Parent:
- 9:df2ea349c37a
--- a/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c Thu Jul 06 16:58:50 2017 +0200 +++ b/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_camera.c Thu Jun 06 00:07:56 2019 +0000 @@ -388,6 +388,25 @@ } } + +/** + * @brief Handles DCMI interrupt request. + * @retval None + */ +void BSP_CAMERA_IRQHandler(void) +{ + HAL_DCMI_IRQHandler(&hDcmiHandler); +} + +/** + * @brief Handles DMA interrupt request. + * @retval None + */ +void BSP_CAMERA_DMA_IRQHandler(void) +{ + HAL_DMA_IRQHandler(hDcmiHandler.DMA_Handle); +} + /** * @brief Get the capture size in pixels unit. * @param resolution: the current resolution.