litex/software/bios/main.c

20 lines
237 B
C
Raw Normal View History

#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;
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
}