aboutsummaryrefslogtreecommitdiff
path: root/PL0_test.c
blob: 1a3d49da16f5ab78c3aec78af52482755fac1b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
	}
    }
}