Cleanup stm32_metapac register usage in usart module
This commit is contained in:
parent
9e31a45134
commit
14d079ae84
@ -398,7 +398,7 @@ pub struct UartRx<'d, M: Mode> {
|
||||
rx_dma: Option<ChannelAndRequest<'d>>,
|
||||
detect_previous_overrun: bool,
|
||||
#[cfg(any(usart_v1, usart_v2))]
|
||||
buffered_sr: stm32_metapac::usart::regs::Sr,
|
||||
buffered_sr: regs::Sr,
|
||||
_phantom: PhantomData<M>,
|
||||
}
|
||||
|
||||
@ -945,7 +945,7 @@ impl<'d, M: Mode> UartRx<'d, M> {
|
||||
rx_dma,
|
||||
detect_previous_overrun: config.detect_previous_overrun,
|
||||
#[cfg(any(usart_v1, usart_v2))]
|
||||
buffered_sr: stm32_metapac::usart::regs::Sr(0),
|
||||
buffered_sr: regs::Sr(0),
|
||||
};
|
||||
this.enable_and_configure(&config)?;
|
||||
Ok(this)
|
||||
@ -1444,7 +1444,7 @@ impl<'d, M: Mode> Uart<'d, M> {
|
||||
rx_dma,
|
||||
detect_previous_overrun: config.detect_previous_overrun,
|
||||
#[cfg(any(usart_v1, usart_v2))]
|
||||
buffered_sr: stm32_metapac::usart::regs::Sr(0),
|
||||
buffered_sr: regs::Sr(0),
|
||||
},
|
||||
};
|
||||
this.enable_and_configure(&config)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user