]> git.sur5r.net Git - cc65/commitdiff
add SER_ERR_NOT_OPEN status code
authorChristian Groessler <chris@groessler.org>
Fri, 6 Dec 2013 19:10:27 +0000 (20:10 +0100)
committerChristian Groessler <chris@groessler.org>
Fri, 6 Dec 2013 19:53:49 +0000 (20:53 +0100)
asminc/ser-error.inc
include/serial.h

index f1592876b617ef7886a3d0fd3a29ff09499d36d0..ff4e2b448b984c58bbc8e321da1e819f0358bd9b 100644 (file)
@@ -48,6 +48,7 @@
         SER_ERR_INIT_FAILED             ; Initialization failed
         SER_ERR_INV_IOCTL               ; IOCTL not supported
         SER_ERR_INSTALLED               ; A driver is already installed
+        SER_ERR_NOT_OPEN                ; Driver not open
 
         SER_ERR_COUNT                   ; Special: Number of error codes
 .endenum
index f88ab114eb116cdf1e30b249bfdf1c7b127e3733..a3099893b4821ec577e540b1f18e2167b0d3f68e 100644 (file)
 #define SER_ERR_INIT_FAILED     0x08    /* Initialization failed */
 #define SER_ERR_INV_IOCTL       0x09    /* IOCTL not supported */
 #define SER_ERR_INSTALLED       0x0A    /* A driver is already installed */
+#define SER_ERR_NOT_OPEN        0x0B    /* Driver is not open */
 
 /* Struct containing parameters for the serial port */
 struct ser_params {