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