From: Christian Groessler Date: Fri, 6 Dec 2013 19:10:27 +0000 (+0100) Subject: add SER_ERR_NOT_OPEN status code X-Git-Tag: V2.15~208^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=367ab2d5313fc9d5d07a9c7c654772e47a5c3339;p=cc65 add SER_ERR_NOT_OPEN status code --- diff --git a/asminc/ser-error.inc b/asminc/ser-error.inc index f1592876b..ff4e2b448 100644 --- a/asminc/ser-error.inc +++ b/asminc/ser-error.inc @@ -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 diff --git a/include/serial.h b/include/serial.h index f88ab114e..a3099893b 100644 --- a/include/serial.h +++ b/include/serial.h @@ -111,6 +111,7 @@ #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 {