diff Small_CPU/Src/stm32f4xx_it_v3.c @ 988:d9290c76b840 GasConsumption

OSTC4/5 joined code: In the previous version code differences between OSTC4/5 were identified using the ENABLE_GPIO_V2 compiler switch. In the new version this is done using the display version as indicator which OSTC model is in used. Since this is detected by Firmware the information is forwarded from there to the RTE. This causes a little delay in the GPIO initialization but this applies only to the cold start of the RTE which should not happen very often.
author ideenmodellierer
date Sun, 06 Apr 2025 21:02:17 +0200 (11 days ago)
parents 6fc0e3d230e4
children
line wrap: on
line diff
--- a/Small_CPU/Src/stm32f4xx_it_v3.c	Sat Mar 29 14:56:08 2025 +0100
+++ b/Small_CPU/Src/stm32f4xx_it_v3.c	Sun Apr 06 21:02:17 2025 +0200
@@ -61,9 +61,11 @@
 extern UART_HandleTypeDef huart1;
 extern DMA_HandleTypeDef  hdma_usart1_rx;
 extern DMA_HandleTypeDef  hdma_usart1_tx;
+#ifdef ENABLE_GNSS_INTERN
 extern UART_HandleTypeDef huart6;
 extern DMA_HandleTypeDef  hdma_usart6_rx;
 extern DMA_HandleTypeDef  hdma_usart6_tx;
+#endif
 /* Private function prototypes -----------------------------------------------*/
 /* Private functions ---------------------------------------------------------*/
 
@@ -249,7 +251,7 @@
   HAL_DMA_IRQHandler(&hdma_usart1_tx);
 }
 
-#ifdef ENABLE_GPIO_V2
+#ifdef ENABLE_GNSS_INTERN
 void DMA2_Stream2_IRQHandler(void)
 {
   HAL_DMA_IRQHandler(&hdma_usart6_rx);
@@ -327,7 +329,7 @@
   HAL_UART_IRQHandler(&huart1);
 }
 
-#ifdef ENABLE_GPIO_V2
+#ifdef ENABLE_GNSS_INTERN
 void USART6_IRQHandler(void)
 {
   HAL_UART_IRQHandler(&huart6);