aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4
diff options
context:
space:
mode:
authorBob McWhirter <[email protected]>2021-06-30 14:58:28 -0400
committerBob McWhirter <[email protected]>2021-07-01 11:30:54 -0400
commit54ada5bae113dbff1f5b76fac2676734f6ddd8eb (patch)
tree1f0c4b4fd2bece3bae0697169d61e5e59406369f /examples/stm32l4
parentbf3bc925251bdd55cf853e3380cc012c7257eab8 (diff)
Stub in the DMA bits that aren't yet there.
Diffstat (limited to 'examples/stm32l4')
-rw-r--r--examples/stm32l4/src/bin/usart.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/stm32l4/src/bin/usart.rs b/examples/stm32l4/src/bin/usart.rs
index 6b2b13810..5b6d9eaa1 100644
--- a/examples/stm32l4/src/bin/usart.rs
+++ b/examples/stm32l4/src/bin/usart.rs
@@ -58,7 +58,10 @@ fn main() -> ! {
58 w.dbg_stop().set_bit() 58 w.dbg_stop().set_bit()
59 }); 59 });
60 60
61 pp.RCC.ahb1enr.modify(|_, w| w.dma1en().set_bit()); 61 pp.RCC.ahb1enr.modify(|_, w| {
62 w.dma1en().set_bit();
63 w
64 });
62 65
63 pp.RCC.ahb2enr.modify(|_, w| { 66 pp.RCC.ahb2enr.modify(|_, w| {
64 w.gpioaen().set_bit(); 67 w.gpioaen().set_bit();
@@ -70,6 +73,11 @@ fn main() -> ! {
70 w 73 w
71 }); 74 });
72 75
76 pp.RCC.apb1enr1.modify(|_, w| {
77 w.uart4en().set_bit();
78 w
79 });
80
73 pp.RCC.apb2enr.modify(|_, w| { 81 pp.RCC.apb2enr.modify(|_, w| {
74 w.syscfgen().set_bit(); 82 w.syscfgen().set_bit();
75 w 83 w