diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-02-21 23:23:04 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-02-21 23:23:04 +0100 |
| commit | 2feed96c91e2bd3846452e87b575b3d57ae3cde8 (patch) | |
| tree | 65209179b4dfa14ae7a5637e23d5d54704225248 /embassy-nrf/src/uarte.rs | |
| parent | 4fbe18f82134567af4766d161e8385c7dd919a0b (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.rs | 2 |
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 | ||
| 302 | fn configure(r: &RegisterBlock, config: Config, hardware_flow_control: bool) { | 302 | pub(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); |
