Hardware abstraction for a UART device.
Definition uart.h:21
char(* getc)(struct uart_device *dev)
Function pointer to receive a character.
Definition uart.h:29
void(* putc)(struct uart_device *dev, char c)
Function pointer to transmit a character.
Definition uart.h:26
uintptr_t mmio_base
Base address for Memory-Mapped I/O.
Definition uart.h:23
void pl011_init(uart_device_t *dev, uintptr_t base)
Initialize a UART device struct.
Definition uart.c:140
bool pl011_register_handler(uart_device_t *dev)
Register the PL011 UART receive interrupt handler with the ICU.
Definition uart.c:131
struct uart_device uart_device_t
Hardware abstraction for a UART device.