Update of /cvsroot/com0com/com0com/sys
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12980
Modified Files:
noise.c
Log Message:
Fixed bits in BreakError()
Index: noise.c
===================================================================
RCS file: /cvsroot/com0com/com0com/sys/noise.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** noise.c 26 Jun 2008 13:37:10 -0000 1.1
--- noise.c 1 Sep 2008 16:45:12 -0000 1.2
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.2 2008/09/01 16:45:12 vfrolov
+ * Fixed bits in BreakError()
+ *
* Revision 1.1 2008/06/26 13:37:10 vfrolov
* Implemented noise emulation
***************
*** 51,56 ****
VOID BreakError(PC0C_IO_PORT pReadIoPort, PUCHAR pLsr)
{
! *pLsr |= 0x10; /* break interrupt indicator */
! pReadIoPort->errors |= SERIAL_ERROR_BREAK;
}
/********************************************************************/
--- 54,64 ----
VOID BreakError(PC0C_IO_PORT pReadIoPort, PUCHAR pLsr)
{
! *pLsr |= 0x18; /* break interrupt indicator & framing error */
! pReadIoPort->errors |= (SERIAL_ERROR_BREAK | SERIAL_ERROR_FRAMING);
!
! if (pReadIoPort->lineControl.Parity == ODD_PARITY || pReadIoPort->lineControl.Parity == MARK_PARITY) {
! *pLsr |= 0x04; /* parity error */
! pReadIoPort->errors |= SERIAL_ERROR_PARITY;
! }
}
/********************************************************************/
|