13 lines
167 B
C
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
|
|
}
|