mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 20:30:29 +00:00
fix: suspend before reset
This follows the procedure outlined in the STM32U5 reference manual at page 696.
This commit is contained in:
parent
4999069198
commit
f67365a067
@ -382,6 +382,9 @@ impl AnyChannel {
|
||||
let info = self.info();
|
||||
let ch = info.dma.ch(info.num);
|
||||
|
||||
self.request_suspend();
|
||||
while self.is_running() {}
|
||||
|
||||
ch.cr().modify(|w| w.set_reset(true));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user