Hi, I am a bit confused… Can I have both RX and TX UART with DMA? Do I need to stop the RX while transmitting and restart it in the TX OnComplete callback? I have the RX now working great with :
uart.DmaReceive(rx_buff, BytestRecv, NULL, RestartUartRx, NULL);
and
void RestartUartRx(void* state, UartHandler::Result res)
{
updtParam = true;
uart.DmaReceive(rx_buff, BytestRecv, NULL, RestartUartRx, NULL);
}
but when trying to use :
uart.DmaTransmit(
tx_buff, total_size, nullptr, sendDataPacketDmaComplete, nullptr
);
I get no TX.