litex/software/bios/main.c
Sebastien Bourdeauducq 45529d5941 BIOS: hello world
2012-02-05 20:01:28 +01:00

16 lines
204 B
C

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