uart.h

Commit: e6209518 Author: jokerz Raw Copy
1
/* uart.h — PL011 UART driver */
2
#ifndef UART_H
3
#define UART_H
4
5
/* QEMU virt: 0x09000000, Pi 5: 0xFE201000 */
6
#define UART0_BASE 0x09000000UL
7
8
void uart_putc(char c);
9
void uart_puts(const char *s);
10
int  uart_getc(void);
11
int  uart_poll(void);
12
13
#endif
14
void uart_init(void);
15