software: UART RX demo
This commit is contained in:
parent
506ffab11a
commit
ef0667d959
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue