Mercurial > public > ostc4
diff Small_CPU/Src/uartProtocol_O2.c @ 932:effadaa3a1f7 Evo_2_23
Cleanup Gnss UART implementation:
The first draft of the internal UART implementation was just a copy of the external UART handling. To avoid duplicated code and maintainance issue both UARTs (external/internal 6/1) share the same functions. To enable this a control structure has to be used as function input which defines the none shared resources like DMA control and rx/tx buffers
author | Ideenmodellierer |
---|---|
date | Sat, 07 Dec 2024 21:28:08 +0100 |
parents | eb4109d7d1e9 |
children |
line wrap: on
line diff
--- a/Small_CPU/Src/uartProtocol_O2.c Tue Dec 03 20:32:51 2024 +0100 +++ b/Small_CPU/Src/uartProtocol_O2.c Sat Dec 07 21:28:08 2024 +0100 @@ -106,7 +106,7 @@ localComState = UART_O2_CHECK; lastComState = UART_O2_CHECK; - UART_clearRxBuffer(); + UART_clearRxBuffer(&Uart1Ctrl); uartO2_SetupCmd(localComState,cmdString,&cmdLength); UART_SendCmdString(cmdString); rxState = O2RX_CONFIRM;