* This function initializes serial */
| 23 | * This function initializes serial |
| 24 | */ |
| 25 | void rt_serial_init(void) |
| 26 | { |
| 27 | outb(COM1+3,0x80); /* set DLAB of line control reg */ |
| 28 | outb(COM1,0x0c); /* LS of divisor (48 -> 2400 bps */ |
| 29 | outb(COM1+1,0x00); /* MS of divisor */ |
| 30 | outb(COM1+3,0x03); /* reset DLAB */ |
| 31 | outb(COM1+4,0x0b); /* set DTR,RTS, OUT_2 */ |
| 32 | outb(COM1+1,0x0d); /* enable all intrs but writes */ |
| 33 | inb(COM1); /* read data port to reset things (?) */ |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * This function read a character from serial without interrupt enable mode |
no test coverage detected