Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions embassy-stm32/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased - ReleaseDate

- fix: stm32: GPDMA driver reset ignored during channel configuration
- fix: stm32: SPI driver SSOE and SSM manegment, add `nss_output_disable` to SPI Config
- change: stm32: use typelevel timer type to allow dma for 32 bit timers
- fix: fix incorrect handling of split interrupts in timer driver
Expand Down
5 changes: 5 additions & 0 deletions embassy-stm32/src/dma/gpdma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ impl AnyChannel {
// "Preceding reads and writes cannot be moved past subsequent writes."
fence(Ordering::SeqCst);

if ch.cr().read().en() {
ch.cr().modify(|w| w.set_susp(true));
while !ch.sr().read().suspf() {}
}

ch.cr().write(|w| w.set_reset(true));
ch.fcr().write(|w| {
// Clear all irqs
Expand Down