synth/uart/echo.c
2021-03-13 15:49:28 -08:00

13 lines
167 B
C

#include "uart.h"
#define uart0 ((struct uart*)0xc010)
int main() {
while (1) {
char c = uart_read(uart0);
uart_write(uart0, c);
}
// never returns
}