From: Matt Mullins Date: Sun, 23 Dec 2012 23:30:35 +0000 (-0800) Subject: Re-enable the UART0 RX DMA after reading a byte. X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=refs%2Fheads%2Fserial;p=stellaris%2Fled_blink.git Re-enable the UART0 RX DMA after reading a byte. Apparently it gets disabled after a basic-mode transfer completes. --- 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))