MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_serial_getc

Function rt_serial_getc

bsp/x86/drivers/serial.c:41–46  ·  view source on GitHub ↗

* This function read a character from serial without interrupt enable mode * * @return the read char */

Source from the content-addressed store, hash-verified

39 * @return the read char
40 */
41char 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

Callers 1

rt_console_isrFunction · 0.70

Calls 1

inbFunction · 0.85

Tested by

no test coverage detected