projects
/
stellaris
/
led_blink.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e0cf0
)
Re-enable the UART0 RX DMA after reading a byte.
serial
author
Matt Mullins
<mmullins@mmlx.us>
Sun, 23 Dec 2012 23:30:35 +0000
(15:30 -0800)
committer
Matt 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
patch
|
blob
|
history
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))