From 25c2a9baaa863a42780e70791d6ab9df89f2dd3b Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Tue, 24 Oct 2023 10:11:54 +0300 Subject: [PATCH] stm32 uart: remove redundant set_fifoen(true) --- embassy-stm32/src/usart/buffered.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index 0e314c1d..4daddfe9 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs @@ -233,9 +233,6 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> { configure(r, &config, T::frequency(), T::KIND, true, true)?; r.cr1().modify(|w| { - #[cfg(usart_v4)] - w.set_fifoen(true); - w.set_rxneie(true); w.set_idleie(true); }); @@ -257,9 +254,6 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> { reconfigure::(config)?; T::regs().cr1().modify(|w| { - #[cfg(usart_v4)] - w.set_fifoen(true); - w.set_rxneie(true); w.set_idleie(true); }); @@ -347,9 +341,6 @@ impl<'d, T: BasicInstance> BufferedUartRx<'d, T> { reconfigure::(config)?; T::regs().cr1().modify(|w| { - #[cfg(usart_v4)] - w.set_fifoen(true); - w.set_rxneie(true); w.set_idleie(true); }); @@ -431,9 +422,6 @@ impl<'d, T: BasicInstance> BufferedUartTx<'d, T> { reconfigure::(config)?; T::regs().cr1().modify(|w| { - #[cfg(usart_v4)] - w.set_fifoen(true); - w.set_rxneie(true); w.set_idleie(true); });