* This function read a character from serial without interrupt enable mode * * @return the read char */
| 39 | * @return the read char |
| 40 | */ |
| 41 | char rt_serial_getc(void) |
| 42 | { |
| 43 | while(!(inb(COM1+COMSTATUS) & COMDATA)); |
| 44 | |
| 45 | return inb(COM1+COMREAD); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * This function will write a character to serial without interrupt enable mode |