From e1d7d8d841c59015d4600a66c65b7a8efffc62fc Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Wed, 30 Nov 2022 14:11:32 +0100 Subject: [PATCH] stm32: Enable fifo for buffered uart --- embassy-stm32/src/usart/buffered.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index acd96d7c..d024bedc 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs @@ -112,6 +112,9 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> { unsafe { r.cr1().modify(|w| { + #[cfg(lpuart_v2)] + w.set_fifoen(true); + w.set_rxneie(true); w.set_idleie(true); });