/* uart.h — PL011 UART driver */ #ifndef UART_H #define UART_H /* QEMU virt: 0x09000000, Pi 5: 0xFE201000 */ #define UART0_BASE 0x09000000UL void uart_putc(char c); void uart_puts(const char *s); int uart_getc(void); int uart_poll(void); #endif void uart_init(void);