0 Members and 1 Guest are viewing this topic.
void ut_puts(const char *str) { volatile unsigned *line_status_reg = (unsigned*)0x90020014; volatile unsigned *xmit_holding_reg = (unsigned*)0x90020000; while(*str) { while(!(*line_status_reg & 0b100000)); // wait for empty xmit holding reg *xmit_holding_reg = *str++; }}