stm32: Moved comment to match request_stop
This commit is contained in:
parent
907d55ea82
commit
2a9cdaabaa
@ -498,15 +498,15 @@ impl AnyChannel {
|
|||||||
match self.info().dma {
|
match self.info().dma {
|
||||||
#[cfg(dma)]
|
#[cfg(dma)]
|
||||||
DmaInfo::Dma(r) => {
|
DmaInfo::Dma(r) => {
|
||||||
|
// Disable the channel without overwriting the existing configuration
|
||||||
r.st(info.num).cr().modify(|w| {
|
r.st(info.num).cr().modify(|w| {
|
||||||
// Disable the channel without overwriting the existing configuration
|
|
||||||
w.set_en(false);
|
w.set_en(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#[cfg(bdma)]
|
#[cfg(bdma)]
|
||||||
DmaInfo::Bdma(r) => {
|
DmaInfo::Bdma(r) => {
|
||||||
|
// Disable the channel without overwriting the existing configuration
|
||||||
r.ch(info.num).cr().modify(|w| {
|
r.ch(info.num).cr().modify(|w| {
|
||||||
// Disable the channel without overwriting the existing configuration
|
|
||||||
w.set_en(false);
|
w.set_en(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user