mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
17 lines
204 B
C
17 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);
|
||
|
}
|