Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
320:117a7ec23385 | 321:37ee61f93124 |
---|---|
44 UART_HandleTypeDef UartPiezoTxHandle; | 44 UART_HandleTypeDef UartPiezoTxHandle; |
45 #endif | 45 #endif |
46 UART_HandleTypeDef UartIR_HUD_Handle; | 46 UART_HandleTypeDef UartIR_HUD_Handle; |
47 | 47 |
48 __IO ITStatus UartReady = RESET; | 48 __IO ITStatus UartReady = RESET; |
49 __IO ITStatus UartReadyHUD = RESET; | |
50 | 49 |
51 /* Private types -------------------------------------------------------------*/ | 50 /* Private types -------------------------------------------------------------*/ |
52 | 51 |
53 /* Private variables ---------------------------------------------------------*/ | 52 /* Private variables ---------------------------------------------------------*/ |
54 | 53 |
302 { | 301 { |
303 if(huart == &UartHandle) | 302 if(huart == &UartHandle) |
304 UartReady = SET; | 303 UartReady = SET; |
305 } | 304 } |
306 | 305 |
307 //void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) | 306 |
308 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) | 307 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) |
309 { | 308 { |
310 if(huart == &UartHandle) | 309 if(huart == &UartHandle) |
311 UartReady = SET; | 310 UartReady = SET; |
312 else | 311 else |
313 if(huart == &UartIR_HUD_Handle) | 312 if(huart == &UartIR_HUD_Handle) |
314 { | 313 { |
315 UartReadyHUD = SET; | 314 tCCR_SetRXIndication(); |
316 } | 315 } |
317 } | 316 } |
318 | 317 |
319 void MX_tell_reset_logik_alles_ok(void) | 318 void MX_tell_reset_logik_alles_ok(void) |
320 { | 319 { |