diff Discovery/Src/ostc.c @ 321:37ee61f93124 O2_SensorSync

Moved indication variable for received HUD data to tCCR file. To avoid global functions an interface function for indication and handling of received HUD data has been added
author ideenmodellierer
date Sun, 30 Jun 2019 21:18:05 +0200
parents 5ca177d2df5d
children bc6c90e20d9e
line wrap: on
line diff
--- a/Discovery/Src/ostc.c	Wed Jun 19 13:12:25 2019 +0000
+++ b/Discovery/Src/ostc.c	Sun Jun 30 21:18:05 2019 +0200
@@ -46,7 +46,6 @@
 UART_HandleTypeDef UartIR_HUD_Handle;
 
 __IO ITStatus UartReady = RESET;
-__IO ITStatus UartReadyHUD = RESET;
 
 /* Private types -------------------------------------------------------------*/
 
@@ -304,7 +303,7 @@
         UartReady = SET;
 }
 
-//void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
+
 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
 {
     if(huart == &UartHandle)
@@ -312,7 +311,7 @@
     else
     if(huart == &UartIR_HUD_Handle)
     {
-        UartReadyHUD = SET;
+    	tCCR_SetRXIndication();
     }
 }