Skip to content

Commit d978792

Browse files
committed
default
1 parent e7ef023 commit d978792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serial/usart.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ pub use gpio::alt::SerialAsync as CommonPins;
9292
pub trait Instance: crate::Sealed + crate::Ptr + Enable + Reset + CommonPins {}
9393

9494
/// Serial receiver
95-
pub struct Rx<USART: Instance, Dma> {
95+
pub struct Rx<USART: Instance, Dma = NoDMA> {
9696
pin: Option<USART::Rx<PushPull>>,
9797
usart: USART,
9898
_dma: PhantomData<Dma>,
9999
}
100100

101101
/// Serial transmitter
102-
pub struct Tx<USART: Instance, Dma, Otype = PushPull> {
102+
pub struct Tx<USART: Instance, Dma = NoDMA, Otype = PushPull> {
103103
pin: Option<USART::Tx<Otype>>,
104104
usart: USART,
105105
_dma: PhantomData<Dma>,

0 commit comments

Comments
 (0)