aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorPeter Krull <[email protected]>2024-09-19 18:25:08 +0200
committerPeter Krull <[email protected]>2024-09-19 18:25:08 +0200
commit2a9cdaabaa315795722886f94fa553e8f3e3c14d (patch)
treeaedf944b9e9a2d167bd9c20db5fe0aac1753f71d /embassy-stm32/src
parent907d55ea82ac09b507afdc7ccb4d5997f827a748 (diff)
stm32: Moved comment to match request_stop
Diffstat (limited to 'embassy-stm32/src')
-rw-r--r--embassy-stm32/src/dma/dma_bdma.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/dma/dma_bdma.rs b/embassy-stm32/src/dma/dma_bdma.rs
index 2887536c3..d10b5554f 100644
--- a/embassy-stm32/src/dma/dma_bdma.rs
+++ b/embassy-stm32/src/dma/dma_bdma.rs
@@ -498,15 +498,15 @@ impl AnyChannel {
498 match self.info().dma { 498 match self.info().dma {
499 #[cfg(dma)] 499 #[cfg(dma)]
500 DmaInfo::Dma(r) => { 500 DmaInfo::Dma(r) => {
501 // Disable the channel without overwriting the existing configuration
501 r.st(info.num).cr().modify(|w| { 502 r.st(info.num).cr().modify(|w| {
502 // Disable the channel without overwriting the existing configuration
503 w.set_en(false); 503 w.set_en(false);
504 }); 504 });
505 } 505 }
506 #[cfg(bdma)] 506 #[cfg(bdma)]
507 DmaInfo::Bdma(r) => { 507 DmaInfo::Bdma(r) => {
508 // Disable the channel without overwriting the existing configuration
508 r.ch(info.num).cr().modify(|w| { 509 r.ch(info.num).cr().modify(|w| {
509 // Disable the channel without overwriting the existing configuration
510 w.set_en(false); 510 w.set_en(false);
511 }); 511 });
512 } 512 }