comparison Small_CPU/Src/uart_Internal.c @ 927:908d9a8e8c84 Evo_2_23

Cleanup Internal Uart: The internal UART was using the wrong UART RX channel. In addition the compile switches have been updated to allow GNSS data flow if new GPIO config is available or if GNSS is enabled for the external UART.
author Ideenmodellierer
date Tue, 26 Nov 2024 21:01:13 +0100
parents 6fc0e3d230e4
children 5a9bc2e6112d
comparison
equal deleted inserted replaced
926:875933272056 927:908d9a8e8c84
187 { 187 {
188 if(len < TX_BUF_SIZE) /* A longer string is an indication for a missing 0 termination */ 188 if(len < TX_BUF_SIZE) /* A longer string is an indication for a missing 0 termination */
189 { 189 {
190 if(dmaRx6Active == 0) 190 if(dmaRx6Active == 0)
191 { 191 {
192 UART_StartDMA_Receiption(); 192 UART6_StartDMA_Receiption();
193 } 193 }
194 memcpy(tx6Buffer, cmd, len); 194 memcpy(tx6Buffer, cmd, len);
195 if(HAL_OK == HAL_UART_Transmit_DMA(&huart6,tx6Buffer,len)) 195 if(HAL_OK == HAL_UART_Transmit_DMA(&huart6,tx6Buffer,len))
196 { 196 {
197 dmaTx6Active = 1; 197 dmaTx6Active = 1;