Re-enable the UART0 RX DMA after reading a byte. serial
authorMatt Mullins <mmullins@mmlx.us>
Sun, 23 Dec 2012 23:30:35 +0000 (15:30 -0800)
committerMatt Mullins <mmullins@mmlx.us>
Mon, 24 Dec 2012 00:50:03 +0000 (16:50 -0800)
Apparently it gets disabled after a basic-mode transfer completes.

main.c

diff --git a/main.c b/main.c
index d647b9c..e789188 100644 (file)
--- 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))