Go to the source code of this file.
Defines | |||||
#define | PORT1 0x3F8 | ||||
Serial port base address (for COM1). | |||||
#define | PORT2 0x2F8 | ||||
Serial port base address (for COM2). | |||||
#define | PORT3 0x3E8 | ||||
Serial port base address (for COM3). | |||||
#define | PORT4 0x2E8 | ||||
Serial port base address (for COM4). | |||||
#define | COM1 PORT1 | ||||
COM1 port address. | |||||
#define | COM2 PORT2 | ||||
COM2 port address. | |||||
#define | COM3 PORT3 | ||||
COM3 port address. | |||||
#define | COM4 PORT4 | ||||
COM4 port address. | |||||
#define | BPS_115200 0x01 | ||||
115,200 BPS. | |||||
#define | BPS_56700 0x02 | ||||
56,700 BPS. | |||||
#define | BPS_38400 0x03 | ||||
38,400 BPS. | |||||
#define | BPS_19200 0x06 | ||||
19,200 BPS. | |||||
#define | BPS_9600 0x0C | ||||
9,600 BPS. | |||||
#define | BPS_4800 0x18 | ||||
4,800 BPS. | |||||
#define | BPS_2400 0x30 | ||||
2,400 BPS. | |||||
#define | RS232_BUF_DIM 256 | ||||
RS232 buffer size. | |||||
Functions | |||||
void | rs232_handler (word port) | ||||
RS232 common handler routine.
| |||||
void | init_rs232 (word port, byte divisor) | ||||
Initialize the RS232 interface with a bps rate.
| |||||
void | close_rs232 (word port) | ||||
Close a specific RS232 port.
| |||||
byte | rs232_getchar () | ||||
Get a character from the current serial port.
| |||||
void | rs232_putchar (byte c) | ||||
Write a character to the current serial port.
| |||||
void | rs232_chat () |
Definition in file serial.h.
|
115,200 BPS.
|
|
19,200 BPS.
|
|
2,400 BPS.
|
|
38,400 BPS.
|
|
4,800 BPS.
|
|
56,700 BPS.
|
|
9,600 BPS.
|
|
COM1 port address.
|
|
COM2 port address.
|
|
COM3 port address.
|
|
COM4 port address.
|
|
Serial port base address (for COM1).
|
|
Serial port base address (for COM2).
|
|
Serial port base address (for COM3).
|
|
Serial port base address (for COM4).
|
|
RS232 buffer size.
|
|
|