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.

Files at this revision

API Documentation at this revision

Comitter:
njeffrie
Date:
Thu Jun 06 00:07:56 2019 +0000
Parent:
9:df2ea349c37a
Commit message:
Add DCMI IRQ Handlers; ; 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.

Changed in this revision

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_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.