# Serial communications

Prerequisites: sys/io

The driver at drv/pc/com.fs allows transmission of data through PC's COM1 port
(yes, for now it's hardcoded. It's even hardcoded to 115200 bauds 8N1).

To use it, you simply initialize it with "com$" and then use the API described
below.

## API

com$ ( -- )
  Initializes COM1 to 115200 bauds 8N1.

>com ( c -- )
  Send a character to COM1.

com>? ( -- c? f )
  Poll COM1. If a character is present, f=1 and c is present. Otherwise, f=0 and
  c is absent.

com> ( -- c )
  Block until a character is received from COM1.

struct COM1 extends IO
  A simple IO implementation around COM1.

structbind COM1 com1
