diff options
| author | Jacob Davis-Hansson <[email protected]> | 2023-04-15 15:13:44 +0200 |
|---|---|---|
| committer | Jacob Davis-Hansson <[email protected]> | 2023-04-15 15:13:44 +0200 |
| commit | 81f10e136a95c33f98f5fa06ac3996bee97e66d3 (patch) | |
| tree | d3158504109915b20ddb2b27504b791c343e1090 | |
| parent | b9fc2a6b33d8af88d95d750965f3fb8b1e9032d4 (diff) | |
outover instead of inover
| -rw-r--r-- | embassy-rp/src/uart/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs index dfa56a842..f7a4c5a60 100644 --- a/embassy-rp/src/uart/mod.rs +++ b/embassy-rp/src/uart/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::dma::{AnyChannel, Channel}; | |||
| 6 | use crate::gpio::sealed::Pin; | 6 | use crate::gpio::sealed::Pin; |
| 7 | use crate::gpio::AnyPin; | 7 | use crate::gpio::AnyPin; |
| 8 | use crate::{pac, peripherals, Peripheral}; | 8 | use crate::{pac, peripherals, Peripheral}; |
| 9 | use crate::pac::io::vals::Inover; | 9 | use crate::pac::io::vals::{Inover, Outover}; |
| 10 | 10 | ||
| 11 | #[cfg(feature = "nightly")] | 11 | #[cfg(feature = "nightly")] |
| 12 | mod buffered; | 12 | mod buffered; |
| @@ -396,7 +396,7 @@ impl<'d, T: Instance + 'd, M: Mode> Uart<'d, T, M> { | |||
| 396 | if let Some(pin) = &tx { | 396 | if let Some(pin) = &tx { |
| 397 | pin.io().ctrl().write(|w| { | 397 | pin.io().ctrl().write(|w| { |
| 398 | w.set_funcsel(2); | 398 | w.set_funcsel(2); |
| 399 | w.set_inover(if config.invert_tx { Inover::INVERT } else { Inover::NORMAL }); | 399 | w.set_outover(if config.invert_tx { Outover::INVERT } else { Outover::NORMAL }); |
| 400 | }); | 400 | }); |
| 401 | pin.pad_ctrl().write(|w| w.set_ie(true)); | 401 | pin.pad_ctrl().write(|w| w.set_ie(true)); |
| 402 | } | 402 | } |
| @@ -417,7 +417,7 @@ impl<'d, T: Instance + 'd, M: Mode> Uart<'d, T, M> { | |||
| 417 | if let Some(pin) = &rts { | 417 | if let Some(pin) = &rts { |
| 418 | pin.io().ctrl().write(|w| { | 418 | pin.io().ctrl().write(|w| { |
| 419 | w.set_funcsel(2); | 419 | w.set_funcsel(2); |
| 420 | w.set_inover(if config.invert_rts { Inover::INVERT } else { Inover::NORMAL }); | 420 | w.set_outover(if config.invert_rts { Outover::INVERT } else { Outover::NORMAL }); |
| 421 | }); | 421 | }); |
| 422 | pin.pad_ctrl().write(|w| w.set_ie(true)); | 422 | pin.pad_ctrl().write(|w| w.set_ie(true)); |
| 423 | } | 423 | } |
