From 95be196b6fad1853bf4f421e12607745527ab1a1 Mon Sep 17 00:00:00 2001 From: Matt Mullins Date: Sun, 23 Dec 2012 15:30:35 -0800 Subject: [PATCH] Re-enable the UART0 RX DMA after reading a byte. Apparently it gets disabled after a basic-mode transfer completes. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index d647b9c..e789188 100644 --- a/main.c +++ b/main.c @@ -114,6 +114,8 @@ void uart0_isr() { // Enable more DMAs UART0_RX_DMA_BASE[2] |= UDMA_CHCTL_XFERMODE_BASIC; + // DMA is automagically disabled when BASIC mode completes, apparently + UDMA_ENASET_R = (1 << 8); // UART0 RX is channel 8 } __attribute__((isr)) -- 2.11.0