We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7ef023 commit d978792Copy full SHA for d978792
src/serial/usart.rs
@@ -92,14 +92,14 @@ pub use gpio::alt::SerialAsync as CommonPins;
92
pub trait Instance: crate::Sealed + crate::Ptr + Enable + Reset + CommonPins {}
93
94
/// Serial receiver
95
-pub struct Rx<USART: Instance, Dma> {
+pub struct Rx<USART: Instance, Dma = NoDMA> {
96
pin: Option<USART::Rx<PushPull>>,
97
usart: USART,
98
_dma: PhantomData<Dma>,
99
}
100
101
/// Serial transmitter
102
-pub struct Tx<USART: Instance, Dma, Otype = PushPull> {
+pub struct Tx<USART: Instance, Dma = NoDMA, Otype = PushPull> {
103
pin: Option<USART::Tx<Otype>>,
104
105
0 commit comments