diff options
Diffstat (limited to 'PL0_test.c')
-rw-r--r-- | PL0_test.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/PL0_test.c b/PL0_test.c new file mode 100644 index 0000000..1a3d49d --- /dev/null +++ b/PL0_test.c @@ -0,0 +1,18 @@ +#include "uart.h" + +void PL0_main(void) +{ + uart_puts("hello PL0!\n\r"); + + while (1) + { + char c; + switch(c = uart_getc()) + { + case '\r': + uart_putc('\n'); + default: + uart_putc(c); + } + } +} |