From ef0667d95962aaf8e9267e9a9712d0ead97994cd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 7 Feb 2012 14:12:33 +0100 Subject: [PATCH] software: UART RX demo --- software/bios/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/software/bios/main.c b/software/bios/main.c index 36e21c62..d90867b4 100644 --- a/software/bios/main.c +++ b/software/bios/main.c @@ -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); + } } -- 2.30.2