Skip to content

Commit 17ed6af

Browse files
committed
DMA
1 parent a342024 commit 17ed6af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/serial.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ use core::sync::atomic::{self, Ordering};
9696
use embedded_dma::{ReadBuffer, WriteBuffer};
9797

9898
use crate::afio::{self, RInto, Rmp};
99+
#[cfg(any(all(feature = "stm32f103", feature = "high"), feature = "connectivity"))]
100+
use crate::dma::dma2;
99101
use crate::dma::{self, dma1, CircBuffer, RxDma, Transfer, TxDma};
100102
use crate::gpio::{Floating, PushPull, UpMode};
101103
use crate::pac::{self, RCC};
@@ -1032,3 +1034,11 @@ serialdma! {
10321034
rx: dma1::C3,
10331035
tx: dma1::C2
10341036
}
1037+
#[cfg(any(all(feature = "stm32f103", feature = "high"), feature = "connectivity"))]
1038+
serialdma! {
1039+
pac::UART4,
1040+
RxDma4,
1041+
TxDma4,
1042+
rx: dma2::C3,
1043+
tx: dma2::C5
1044+
}

0 commit comments

Comments
 (0)