Straighten checking of the initialized flag in both, the C64 and C128
versions of rs232.s. New include file common/rs232.inc, use the constants from this file instead of defining them separately in each platform specific rs232 module. git-svn-id: svn://svn.cc65.org/cc65/trunk@1208 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
21
libsrc/common/rs232.inc
Normal file
21
libsrc/common/rs232.inc
Normal file
@@ -0,0 +1,21 @@
|
||||
;
|
||||
; rs232.inc
|
||||
;
|
||||
; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
|
||||
;
|
||||
|
||||
; Assembler include file that makes the constants and structures from rs232.h
|
||||
; available for asm code.
|
||||
|
||||
|
||||
|
||||
; Error codes returned by all functions
|
||||
RS_ERR_OK = $00 ; Not an error - relax
|
||||
RS_ERR_NOT_INITIALIZED = $01 ; Module not initialized
|
||||
RS_ERR_BAUD_TOO_FAST = $02 ; Cannot handle baud rate
|
||||
RS_ERR_BAUD_NOT_AVAIL = $03 ; Baud rate not available
|
||||
RS_ERR_NO_DATA = $04 ; Nothing to read
|
||||
RS_ERR_OVERFLOW = $05 ; No room in send buffer
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user