diff options
| author | Tobias Naumann <[email protected]> | 2025-03-27 12:03:52 +0100 |
|---|---|---|
| committer | Tobias Naumann <[email protected]> | 2025-03-27 12:03:52 +0100 |
| commit | 14d079ae84ac28ce860015ad6ca8d040edf3f065 (patch) | |
| tree | b270782947f9552a3343bbc61d14908aa7598986 | |
| parent | 9e31a45134ec8ab114108825989c4e623c7ccfe8 (diff) | |
Cleanup stm32_metapac register usage in usart module
| -rw-r--r-- | embassy-stm32/src/usart/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs index e52647795..803a5d579 100644 --- a/embassy-stm32/src/usart/mod.rs +++ b/embassy-stm32/src/usart/mod.rs | |||
| @@ -398,7 +398,7 @@ pub struct UartRx<'d, M: Mode> { | |||
| 398 | rx_dma: Option<ChannelAndRequest<'d>>, | 398 | rx_dma: Option<ChannelAndRequest<'d>>, |
| 399 | detect_previous_overrun: bool, | 399 | detect_previous_overrun: bool, |
| 400 | #[cfg(any(usart_v1, usart_v2))] | 400 | #[cfg(any(usart_v1, usart_v2))] |
| 401 | buffered_sr: stm32_metapac::usart::regs::Sr, | 401 | buffered_sr: regs::Sr, |
| 402 | _phantom: PhantomData<M>, | 402 | _phantom: PhantomData<M>, |
| 403 | } | 403 | } |
| 404 | 404 | ||
| @@ -945,7 +945,7 @@ impl<'d, M: Mode> UartRx<'d, M> { | |||
| 945 | rx_dma, | 945 | rx_dma, |
| 946 | detect_previous_overrun: config.detect_previous_overrun, | 946 | detect_previous_overrun: config.detect_previous_overrun, |
| 947 | #[cfg(any(usart_v1, usart_v2))] | 947 | #[cfg(any(usart_v1, usart_v2))] |
| 948 | buffered_sr: stm32_metapac::usart::regs::Sr(0), | 948 | buffered_sr: regs::Sr(0), |
| 949 | }; | 949 | }; |
| 950 | this.enable_and_configure(&config)?; | 950 | this.enable_and_configure(&config)?; |
| 951 | Ok(this) | 951 | Ok(this) |
| @@ -1444,7 +1444,7 @@ impl<'d, M: Mode> Uart<'d, M> { | |||
| 1444 | rx_dma, | 1444 | rx_dma, |
| 1445 | detect_previous_overrun: config.detect_previous_overrun, | 1445 | detect_previous_overrun: config.detect_previous_overrun, |
| 1446 | #[cfg(any(usart_v1, usart_v2))] | 1446 | #[cfg(any(usart_v1, usart_v2))] |
| 1447 | buffered_sr: stm32_metapac::usart::regs::Sr(0), | 1447 | buffered_sr: regs::Sr(0), |
| 1448 | }, | 1448 | }, |
| 1449 | }; | 1449 | }; |
| 1450 | this.enable_and_configure(&config)?; | 1450 | this.enable_and_configure(&config)?; |
