Skip to main content

Module uart

Module uart 

Source
Expand description

Async wrapper around crate::Uart using ove_uart_set_rx_notify, which delegates to the underlying RX stream’s notify hook.

The UART driver pushes received bytes into an internal ove_stream from ISR context via ove_uart_rx_isr_push. Registering a notify callback there is exactly what async RX needs: each pushed byte triggers the trampoline, which wakes the embassy task suspended on read().await.

TX is left synchronous — Uart::write already blocks until the requested bytes are accepted into the HW FIFO, and exposing a true async TX would need a separate TX-completion DMA callback path (Phase 3 territory).

Structs§

AsyncUart
Async wrapper around an ove::Uart.