software: UART RX demo

This commit is contained in:
Sebastien Bourdeauducq 2012-02-07 14:12:33 +01:00
parent 506ffab11a
commit ef0667d959
1 changed files with 6 additions and 1 deletions

View File

@ -4,11 +4,16 @@
int main(void)
{
char c;
irq_setmask(0);
irq_setie(1);
uart_init();
printf("Hello World with IRQs\n");
while(1);
while(1) {
c = uart_read();
printf("You typed: %c\n", c);
}
}