diff Small_CPU/Src/stm32f4xx_it_v3.c @ 916:4832981f9af8 Evo_2_23

External sensor UART: Switch to DMA TX transfers: The previous version used polling tx function to transfer data. Because of the short command length of the protocols supported this was no big issue. New protocolls (like GNSS) have longer command sequence which have an impact to the program flow. That's why the implementation has been changed to DMA transmission.
author Ideenmodellierer
date Mon, 28 Oct 2024 20:34:58 +0100
parents 1b995079c045
children 7c996354b8ac
line wrap: on
line diff
--- a/Small_CPU/Src/stm32f4xx_it_v3.c	Sat Oct 19 20:10:56 2024 +0200
+++ b/Small_CPU/Src/stm32f4xx_it_v3.c	Mon Oct 28 20:34:58 2024 +0100
@@ -60,6 +60,7 @@
 
 extern UART_HandleTypeDef huart1;
 extern DMA_HandleTypeDef  hdma_usart1_rx;
+extern DMA_HandleTypeDef  hdma_usart1_tx;
 
 /* Private function prototypes -----------------------------------------------*/
 /* Private functions ---------------------------------------------------------*/
@@ -241,6 +242,10 @@
   HAL_DMA_IRQHandler(&hdma_usart1_rx);
 }
 
+void DMA2_Stream7_IRQHandler(void)
+{
+  HAL_DMA_IRQHandler(&hdma_usart1_tx);
+}
 
 /******************************************************************************/
 /*                 STM32F4xx Peripherals Interrupt Handlers                   */