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

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
comparison
equal deleted inserted replaced
921:eb4109d7d1e9 922:7c996354b8ac
59 extern ADC_HandleTypeDef AdcHandle; 59 extern ADC_HandleTypeDef AdcHandle;
60 60
61 extern UART_HandleTypeDef huart1; 61 extern UART_HandleTypeDef huart1;
62 extern DMA_HandleTypeDef hdma_usart1_rx; 62 extern DMA_HandleTypeDef hdma_usart1_rx;
63 extern DMA_HandleTypeDef hdma_usart1_tx; 63 extern DMA_HandleTypeDef hdma_usart1_tx;
64 64 extern UART_HandleTypeDef huart6;
65 extern DMA_HandleTypeDef hdma_usart6_rx;
66 extern DMA_HandleTypeDef hdma_usart6_tx;
65 /* Private function prototypes -----------------------------------------------*/ 67 /* Private function prototypes -----------------------------------------------*/
66 /* Private functions ---------------------------------------------------------*/ 68 /* Private functions ---------------------------------------------------------*/
67 69
68 /******************************************************************************/ 70 /******************************************************************************/
69 /* Cortex-M4 Processor Exceptions Handlers */ 71 /* Cortex-M4 Processor Exceptions Handlers */
245 void DMA2_Stream7_IRQHandler(void) 247 void DMA2_Stream7_IRQHandler(void)
246 { 248 {
247 HAL_DMA_IRQHandler(&hdma_usart1_tx); 249 HAL_DMA_IRQHandler(&hdma_usart1_tx);
248 } 250 }
249 251
252 #ifdef ENABLE_GPIO_V2
253 void DMA2_Stream1_IRQHandler(void)
254 {
255 HAL_DMA_IRQHandler(&hdma_usart6_rx);
256 }
257
258 void DMA2_Stream6_IRQHandler(void)
259 {
260 HAL_DMA_IRQHandler(&hdma_usart6_tx);
261 }
262 #endif
250 /******************************************************************************/ 263 /******************************************************************************/
251 /* STM32F4xx Peripherals Interrupt Handlers */ 264 /* STM32F4xx Peripherals Interrupt Handlers */
252 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ 265 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
253 /* available peripheral interrupt handler's name please refer to the startup */ 266 /* available peripheral interrupt handler's name please refer to the startup */
254 /* file (startup_stm32f4xx.s). */ 267 /* file (startup_stm32f4xx.s). */
312 void USART1_IRQHandler(void) 325 void USART1_IRQHandler(void)
313 { 326 {
314 HAL_UART_IRQHandler(&huart1); 327 HAL_UART_IRQHandler(&huart1);
315 } 328 }
316 329
330 #ifdef ENABLE_GPIO_V2
331 void USART6_IRQHandler(void)
332 {
333 HAL_UART_IRQHandler(&huart6);
334 }
335 #endif
336
317 /** 337 /**
318 * @brief This function handles PPP interrupt request. 338 * @brief This function handles PPP interrupt request.
319 * @param None 339 * @param None
320 * @retval None 340 * @retval None
321 */ 341 */