mirror of
https://github.com/cc65/cc65.git
synced 2024-12-21 20:29:24 +00:00
Baud rate #define changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@2331 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
74b3b70805
commit
09c208ee67
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user