litex/software/bios/main.c

17 lines
204 B
C
Raw Normal View History

2012-02-05 14:01:28 -05:00
#include <hw/uart.h>
static void print(const char *s)
{
while(*s) {
while(!(CSR_UART_STAT & UART_STAT_THRE));
CSR_UART_RXTX = *s;
s++;
}
}
int main(void)
{
print("Hello World\n");
while(1);
}