nrf/buffered_uarte: fix missing hwfc enable.

This commit is contained in:
Dario Nieuwenhuis 2023-11-13 22:37:13 +01:00
parent ea99671729
commit 19ff043acd

View File

@ -282,6 +282,8 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
let r = U::regs(); let r = U::regs();
let hwfc = cts.is_some();
rxd.conf().write(|w| w.input().connect().drive().h0h1()); rxd.conf().write(|w| w.input().connect().drive().h0h1());
r.psel.rxd.write(|w| unsafe { w.bits(rxd.psel_bits()) }); r.psel.rxd.write(|w| unsafe { w.bits(rxd.psel_bits()) });
@ -311,7 +313,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
// Configure // Configure
r.config.write(|w| { r.config.write(|w| {
w.hwfc().bit(false); w.hwfc().bit(hwfc);
w.parity().variant(config.parity); w.parity().variant(config.parity);
w w
}); });