completed async RX support as well

This commit is contained in:
2025-02-12 21:13:53 +01:00
parent 3e796ef22b
commit 417f5b7f67
11 changed files with 727 additions and 29 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.