diff Small_CPU/Src/stm32f4xx_it_v3.c @ 922:7c996354b8ac Evo_2_23

Moved UART6 into a separate unit: UART6 connects internal devices. As a first step the existing code sections have been moved into a new unit. As well the code of the external GNSS sensor has been copied into this unit as starting point for the further development. Later the internal part can be integrated into the common uart (code cleanup).
author Ideenmodellierer
date Sun, 03 Nov 2024 20:53:05 +0100
parents 4832981f9af8
children 6fc0e3d230e4
line wrap: on
line diff
--- a/Small_CPU/Src/stm32f4xx_it_v3.c	Sun Nov 03 18:19:51 2024 +0100
+++ b/Small_CPU/Src/stm32f4xx_it_v3.c	Sun Nov 03 20:53:05 2024 +0100
@@ -61,7 +61,9 @@
 extern UART_HandleTypeDef huart1;
 extern DMA_HandleTypeDef  hdma_usart1_rx;
 extern DMA_HandleTypeDef  hdma_usart1_tx;
-
+extern UART_HandleTypeDef huart6;
+extern DMA_HandleTypeDef  hdma_usart6_rx;
+extern DMA_HandleTypeDef  hdma_usart6_tx;
 /* Private function prototypes -----------------------------------------------*/
 /* Private functions ---------------------------------------------------------*/
 
@@ -247,6 +249,17 @@
   HAL_DMA_IRQHandler(&hdma_usart1_tx);
 }
 
+#ifdef ENABLE_GPIO_V2
+void DMA2_Stream1_IRQHandler(void)
+{
+  HAL_DMA_IRQHandler(&hdma_usart6_rx);
+}
+
+void DMA2_Stream6_IRQHandler(void)
+{
+  HAL_DMA_IRQHandler(&hdma_usart6_tx);
+}
+#endif
 /******************************************************************************/
 /*                 STM32F4xx Peripherals Interrupt Handlers                   */
 /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
@@ -314,6 +327,13 @@
   HAL_UART_IRQHandler(&huart1);
 }
 
+#ifdef ENABLE_GPIO_V2
+void USART6_IRQHandler(void)
+{
+  HAL_UART_IRQHandler(&huart6);
+}
+#endif
+
 /**
   * @brief  This function handles PPP interrupt request.
   * @param  None