aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-12-01 13:34:52 +0000
committerGitHub <[email protected]>2022-12-01 13:34:52 +0000
commitd8ea297d6a9501a1e509722f522fe707f8f395a0 (patch)
tree3bb18bd4b6fdd56f08df276e6fcb901500281c8a
parenteb010fbe33c2b99bdeaa68a2045b8a8e220cf0aa (diff)
parente1d7d8d841c59015d4600a66c65b7a8efffc62fc (diff)
Merge #1088
1088: stm32: Enable fifo for buffered uart r=lulf a=matoushybl This PR enables fifo for buffered uart where it is available. This should hopfully get rid of some overrun errors. I tried it in my application where it worked, but more intensive testing is probably required. Co-authored-by: Matous Hybl <[email protected]>
-rw-r--r--embassy-stm32/src/usart/buffered.rs3
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 });