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 <hyblmatous@gmail.com>
This commit is contained in:
commit
d8ea297d6a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue