completed async RX support as well

This commit is contained in:
2025-02-12 21:13:53 +01:00
parent 82b4c16f8e
commit 8b60bb1721
11 changed files with 732 additions and 32 deletions

View File

@ -27,15 +27,15 @@ fn main() -> ! {
let gpioa = PinsA::new(&mut dp.sysconfig, dp.porta);
let tx = gpioa.pa9.into_funsel_2();
let rx = gpioa.pa8.into_funsel_2();
let uarta = uart::Uart::new_without_interrupt(
let uart = uart::Uart::new_without_interrupt(
&mut dp.sysconfig,
50.MHz(),
dp.uarta,
(tx, rx),
115200.Hz(),
);
let (mut tx, mut rx) = uarta.split();
let (mut tx, mut rx) = uart.split();
writeln!(tx, "Hello World\r").unwrap();
loop {
// Echo what is received on the serial link.