fix: suspend before reset

This follows the procedure outlined in the STM32U5 reference manual at
page 696.
This commit is contained in:
etiennecollin 2025-08-25 21:10:59 +02:00 committed by Dario Nieuwenhuis
parent 4999069198
commit f67365a067

View File

@ -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));
}