Skip to content

Commit b14db75

Browse files
committed
src/dma.rs: disable cselr for stm32l4+
The stm32l4+ devices do not have this register, but use a separate peripheral (DMAMUX) for routing between peripherals and DMA controllers.
1 parent 0e66113 commit b14db75

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/dma.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,16 @@ macro_rules! dma {
644644
unsafe { &(*$DMAX::ptr()).$cmarX }
645645
}
646646

647+
#[cfg(not(any(
648+
// feature = "stm32l4p5",
649+
// feature = "stm32l4q5",
650+
// feature = "stm32l4r5",
651+
// feature = "stm32l4s5",
652+
// feature = "stm32l4r7",
653+
// feature = "stm32l4s7",
654+
feature = "stm32l4r9",
655+
feature = "stm32l4s9"
656+
)))]
647657
#[inline]
648658
pub(crate) fn cselr(&mut self) -> &dma1::CSELR {
649659
unsafe { &(*$DMAX::ptr()).cselr }

0 commit comments

Comments
 (0)