2012-02-06 17:53:29 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <irq.h>
|
|
|
|
#include <uart.h>
|
2012-02-05 14:01:28 -05:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2012-02-07 08:12:33 -05:00
|
|
|
char c;
|
|
|
|
|
2012-02-06 17:53:29 -05:00
|
|
|
irq_setmask(0);
|
|
|
|
irq_setie(1);
|
|
|
|
uart_init();
|
|
|
|
|
|
|
|
printf("Hello World with IRQs\n");
|
|
|
|
|
2012-02-07 08:12:33 -05:00
|
|
|
while(1) {
|
|
|
|
c = uart_read();
|
|
|
|
printf("You typed: %c\n", c);
|
|
|
|
}
|
2012-02-05 14:01:28 -05:00
|
|
|
}
|