void Bluetooth_SendByte(char ch) { if(ch=='\n') { while(!(rUTRSTAT2 &0x2)) WrUTXH2('\r'); } while(!(rUTRSTAT2 &0x2)); WrUTXH2(ch); }
/* * Output a single byte to the serial port. */ void serial_putc_s3c24xx(const int uart, const char c) { switch(uart) { case UART0: while ( !( rUTRSTAT0 & 0x2 ) ); WrUTXH0(c); break; case UART1: while ( !( rUTRSTAT1 & 0x2 ) ); WrUTXH1(c); break; case UART2: while ( !( rUTRSTAT2 & 0x2 ) ); WrUTXH2(c); break; default: break; } }