diff options
| author | Matous Hybl <[email protected]> | 2022-11-30 14:11:32 +0100 |
|---|---|---|
| committer | Matous Hybl <[email protected]> | 2022-11-30 22:17:51 +0100 |
| commit | e1d7d8d841c59015d4600a66c65b7a8efffc62fc (patch) | |
| tree | 49ee7e973d6ac6d0628ab4f2631dc54df479e423 | |
| parent | cea29d7de3169cf2212128e0386e5d57053cc12d (diff) | |
stm32: Enable fifo for buffered uart
| -rw-r--r-- | embassy-stm32/src/usart/buffered.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index acd96d7c6..d024bedcf 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> { | |||
| 112 | 112 | ||
| 113 | unsafe { | 113 | unsafe { |
| 114 | r.cr1().modify(|w| { | 114 | r.cr1().modify(|w| { |
| 115 | #[cfg(lpuart_v2)] | ||
| 116 | w.set_fifoen(true); | ||
| 117 | |||
| 115 | w.set_rxneie(true); | 118 | w.set_rxneie(true); |
| 116 | w.set_idleie(true); | 119 | w.set_idleie(true); |
| 117 | }); | 120 | }); |
