added async support for UART

This commit is contained in:
2025-02-15 21:04:52 +01:00
parent 910ed58fdf
commit 54c949421e
9 changed files with 1079 additions and 6 deletions

View File

@ -171,10 +171,10 @@ mod app {
let rx = gpiog.pg1.into_funsel_1();
let uart0 = Uart::new(
&mut cx.device.sysconfig,
cx.device.uart0,
(tx, rx),
Hertz::from_raw(UART_BAUDRATE),
&mut cx.device.sysconfig,
&clocks,
);
let (tx, rx) = uart0.split();