From 09c208ee67dce8040ad94c8d6389cb6e9d5d412a Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 15 Aug 2003 21:22:58 +0000 Subject: [PATCH] Baud rate #define changes git-svn-id: svn://svn.cc65.org/cc65/trunk@2331 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/ser-kernel.inc | 18 ++++++++++-------- include/serial.h | 20 ++++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/asminc/ser-kernel.inc b/asminc/ser-kernel.inc index e378d851c..938799cc6 100644 --- a/asminc/ser-kernel.inc +++ b/asminc/ser-kernel.inc @@ -76,14 +76,16 @@ SER_BAUD_600 = $07 SER_BAUD_1200 = $08 SER_BAUD_1800 = $09 SER_BAUD_2400 = $0A -SER_BAUD_4800 = $0B -SER_BAUD_9600 = $0C -SER_BAUD_19200 = $0D -SER_BAUD_38400 = $0E -SER_BAUD_57600 = $0F -SER_BAUD_115200 = $10 -SER_BAUD_230400 = $11 - +SER_BAUD_3600 = $0B +SER_BAUD_4800 = $0C +SER_BAUD_7200 = $0D +SER_BAUD_9600 = $0E +SER_BAUD_19200 = $0F +SER_BAUD_38400 = $10 +SER_BAUD_57600 = $11 +SER_BAUD_115200 = $12 +SER_BAUD_230400 = $13 + ; Data bit settings SER_BITS_5 = $00 SER_BITS_6 = $01 diff --git a/include/serial.h b/include/serial.h index 4c649eb69..5079a96d8 100644 --- a/include/serial.h +++ b/include/serial.h @@ -56,13 +56,15 @@ #define SER_BAUD_1200 0x08 #define SER_BAUD_1800 0x09 #define SER_BAUD_2400 0x0A -#define SER_BAUD_4800 0x0B -#define SER_BAUD_9600 0x0C -#define SER_BAUD_19200 0x0D -#define SER_BAUD_38400 0x0E -#define SER_BAUD_57600 0x0F -#define SER_BAUD_115200 0x10 -#define SER_BAUD_230400 0x11 +#define SER_BAUD_3600 0x0B +#define SER_BAUD_4800 0x0C +#define SER_BAUD_7200 0x0D +#define SER_BAUD_9600 0x0E +#define SER_BAUD_19200 0x0F +#define SER_BAUD_38400 0x10 +#define SER_BAUD_57600 0x11 +#define SER_BAUD_115200 0x12 +#define SER_BAUD_230400 0x13 /* Data bit settings */ #define SER_BITS_5 0x00 @@ -86,7 +88,9 @@ #define SER_HS_HW 0x01 /* Hardware (RTS/CTS) handshake */ #define SER_HS_SW 0x02 /* Software handshake */ -/* Bit masks to mask out things from the status returned by rs232_status */ +/* Bit masks to mask out things from the status returned by ser_status. + * These are 6551 specific and must be mapped by drivers for other chips. + */ #define SER_STATUS_PE 0x01 /* Parity error */ #define SER_STATUS_FE 0x02 /* Framing error */ #define SER_STATUS_OE 0x04 /* Overrun error */ -- 2.39.5