Skip to content

Commit 366bfe2

Browse files
committed
fix
1 parent cb80779 commit 366bfe2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dma/traits/f4.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ address!((pac::SPI5, dr, u8),);
385385
dma_map!(
386386
(Stream4<DMA2>:4, pac::SPI4, [PeripheralToMemory]), //SPI4_RX
387387
);
388-
388+
/*
389389
#[cfg(feature = "dfsdm1")]
390390
mod dfsdm1 {
391391
use super::*;
@@ -402,7 +402,7 @@ mod dfsdm1 {
402402
(Stream6<DMA2>:3, FLT<DFSDM1, 0>, [PeripheralToMemory]), //DFSDM1_FLT0:DMA_CHANNEL_3
403403
);
404404
405-
unsafe impl<const F: u8> PeriAddress for CCR<DFSDM1, F> {
405+
unsafe impl<const F: u8> PeriAddress for FLT<DFSDM1, F> {
406406
#[inline(always)]
407407
fn address(&self) -> u32 {
408408
unsafe { &(*DFSDM1::ptr()).flt[F as usize].rdatar as *const _ as u32 }
@@ -424,15 +424,15 @@ dma_map!(
424424
(Stream7<DMA2>:8, FLT<pac::DFSDM2, 3>, [PeripheralToMemory]), //DFSDM2_FLT3
425425
);
426426
#[cfg(feature = "dfsdm2")]
427-
unsafe impl<const F: u8> PeriAddress for CCR<pac::DFSDM2, F> {
427+
unsafe impl<const F: u8> PeriAddress for FLT<pac::DFSDM2, F> {
428428
#[inline(always)]
429429
fn address(&self) -> u32 {
430430
unsafe { &(*DFSDM2::ptr()).flt[F as usize].rdatar as *const _ as u32 }
431431
}
432432
433433
type MemSize = u32;
434434
}
435-
435+
*/
436436
#[cfg(any(
437437
feature = "gpio-f412",
438438
feature = "gpio-f413",
@@ -486,9 +486,9 @@ address!(
486486
#[cfg(feature = "sai1")]
487487
mod sai1 {
488488
use super::*;
489-
#[cfg(not(feature = "gpio-f446"))]
489+
#[cfg(not(any(feature = "gpio-f446", feature="gpio-f417", feature="svd-f427")))]
490490
use pac::SAI as SAI1;
491-
#[cfg(feature = "gpio-f446")]
491+
#[cfg(any(feature = "gpio-f446", feature="gpio-f417", feature="svd-f427"))]
492492
use pac::SAI1;
493493

494494
dma_map!(

0 commit comments

Comments
 (0)