* This function will write a character to serial without interrupt enable mode * * @param c the char to write */
| 51 | * @param c the char to write |
| 52 | */ |
| 53 | void rt_serial_putc(const char c) |
| 54 | { |
| 55 | int val; |
| 56 | |
| 57 | while(1) |
| 58 | { |
| 59 | if ((val = inb(COM1+COMSTATUS)) & THRE) |
| 60 | break; |
| 61 | } |
| 62 | |
| 63 | outb(COM1+COMWRITE, c&0xff); |
| 64 | } |
| 65 | |
| 66 | /*@}*/ |
no test coverage detected