From a0a2dd04697373c113ccd904fa98d19f973c1c02 Mon Sep 17 00:00:00 2001 From: Dirk Fuhrmann Date: Tue, 30 Apr 2024 10:40:29 +0200 Subject: [PATCH] change for new pac api --- embassy-stm32/src/dma/gpdma.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embassy-stm32/src/dma/gpdma.rs b/embassy-stm32/src/dma/gpdma.rs index 9238f196f..5e6aeab51 100644 --- a/embassy-stm32/src/dma/gpdma.rs +++ b/embassy-stm32/src/dma/gpdma.rs @@ -33,7 +33,7 @@ impl Default for TransferOptions { } } -impl From for vals::ChTr1Dw { +impl From for vals::Dw { fn from(raw: WordSize) -> Self { match raw { WordSize::OneByte => Self::BYTE, @@ -274,7 +274,7 @@ impl<'a> Transfer<'a> { w.set_dinc(true); }); ch.tr2().write(|w| { - w.set_dreq(vals::ChTr2Dreq::SOURCEPERIPHERAL); + w.set_dreq(vals::Dreq::SOURCEPERIPHERAL); w.set_reqsel(request); }); @@ -441,8 +441,8 @@ impl<'a> Transfer<'a> { }); ch.tr2().write(|w| { w.set_dreq(match dir { - Dir::MemoryToPeripheral => vals::ChTr2Dreq::DESTINATIONPERIPHERAL, - Dir::PeripheralToMemory => vals::ChTr2Dreq::SOURCEPERIPHERAL, + Dir::MemoryToPeripheral => vals::Dreq::DESTINATIONPERIPHERAL, + Dir::PeripheralToMemory => vals::Dreq::SOURCEPERIPHERAL, }); w.set_reqsel(request); });