When using TivaWare, how can a DMA transfer between UART and memory, which has already been started, be cancelled without putting the system into an inconsistent state?
Building upon that, if a UART error or some other hardware/software error occurs during the transfer, how can the UART and DMA be "cleaned up" to a working state again?