static int sio_putc(int c) { /* Wait for free space in the TX FIFO. */ while (_lw(EE_SIO_ISR) & 0x8000) ; _sb(c, EE_SIO_TXFIFO); return c; }
int sio_putc(int c) { if((c == '\n') && (___last_sio_putc != '\r')) { // hack: if the character to be outputted is a '\n' // and the previously-outputted character is not a '\r', // output a '\r' first. sio_putc('\r'); } /* Block until we're ready to transmit. */ while ((_lw(SIO_ISR) & 0xf000) == 0x8000); _sb(c, SIO_TXFIFO); ___last_sio_putc = c; return c; }
/* 19 */ void sio2_data_out(u8 val) { _sb(val, SIO2_REG_DATA_OUT); }