aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/uarte.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-02-21 23:23:04 +0100
committerDario Nieuwenhuis <[email protected]>2024-02-21 23:23:04 +0100
commit2feed96c91e2bd3846452e87b575b3d57ae3cde8 (patch)
tree65209179b4dfa14ae7a5637e23d5d54704225248 /embassy-nrf/src/uarte.rs
parent4fbe18f82134567af4766d161e8385c7dd919a0b (diff)
nrf/uart: Add support for rx-only or tx-only BufferedUart.
Diffstat (limited to 'embassy-nrf/src/uarte.rs')
-rw-r--r--embassy-nrf/src/uarte.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs
index cd14c718a..7fd34453a 100644
--- a/embassy-nrf/src/uarte.rs
+++ b/embassy-nrf/src/uarte.rs
@@ -299,7 +299,7 @@ impl<'d, T: Instance> Uarte<'d, T> {
299 } 299 }
300} 300}
301 301
302fn configure(r: &RegisterBlock, config: Config, hardware_flow_control: bool) { 302pub(crate) fn configure(r: &RegisterBlock, config: Config, hardware_flow_control: bool) {
303 r.config.write(|w| { 303 r.config.write(|w| {
304 w.hwfc().bit(hardware_flow_control); 304 w.hwfc().bit(hardware_flow_control);
305 w.parity().variant(config.parity); 305 w.parity().variant(config.parity);