diff --git a/embassy-rp/src/uart.rs b/embassy-rp/src/uart.rs index db135d04..6c5ab351 100644 --- a/embassy-rp/src/uart.rs +++ b/embassy-rp/src/uart.rs @@ -151,7 +151,7 @@ impl<'d, T: Instance> UartRx<'d, T> { } impl<'d, T: Instance> Uart<'d, T> { - /// Create a new UARTE without hardware flow control + /// Create a new UART without hardware flow control pub fn new( uart: impl Peripheral

+ 'd, tx: impl Peripheral

> + 'd, diff --git a/examples/rp/src/bin/uart.rs b/examples/rp/src/bin/uart.rs index 0d295489..b7014c55 100644 --- a/examples/rp/src/bin/uart.rs +++ b/examples/rp/src/bin/uart.rs @@ -9,11 +9,11 @@ use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) { let config = uart::Config::default(); - let mut uart = uart::Uart::new(p.UART0, p.PIN_0, p.PIN_1, p.PIN_2, p.PIN_3, config); - uart.send("Hello World!\r\n".as_bytes()); + let mut uart = uart::Uart::new_with_rtscts(p.UART0, p.PIN_0, p.PIN_1, p.PIN_2, p.PIN_3, config); + uart.blocking_write("Hello World!\r\n".as_bytes()).unwrap(); loop { - uart.send("hello there!\r\n".as_bytes()); + uart.blocking_write("hello there!\r\n".as_bytes()).unwrap(); cortex_m::asm::delay(1_000_000); } }