next up previous contents index
Next: 10.13.11 com_cons_flush: delay until Up: (X86 PC) Base Environment: Previous: 10.13.9 com_cons_getchar: wait for

10.13.10 com_cons_putchar: write a character to a serial port

   

SYNOPSIS

#include <oskit/x86/pc/com_cons.h>

void com_cons_putchar(int port, int ch);

DESCRIPTION

Outputs the indicated character on the specified serial port.

PARAMETERS

port
COM port to write to. Must be 1, 2, 3 or 4.
ch
Character to be printed.

DEPENDENCIES

base_critical_enter
10.2.5
base_critical_leave
10.2.5
inb
10.3.7
outb
10.3.7



University of Utah Flux Research Group