stm32: Enable fifo for buffered uart
This commit is contained in:
parent
cea29d7de3
commit
e1d7d8d841
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