Serial.cpp File Reference


Detailed Description

Contains the code for the emulated Serial Port devices.

Id
Serial.cpp,v 1.48 2008/03/31 19:13:28 iamcamiel Exp

X-1.47 Camiel Vanderhoeven 31-MAR-2008 Compileable on OpenVMS.

X-1.46 Camiel Vanderhoeven 19-MAR-2008 Initialize breakHit.

X-1.45 Camiel Vanderhoeven 13-MAR-2008 Fixed FAILURE macro's for Unix.

X-1.44 Camiel Vanderhoeven 13-MAR-2008 Formatting.

X-1.42 Camiel Vanderhoeven 14-MAR-2008 1. More meaningful exceptions replace throwing (int) 1. 2. U64 macro replaces X64 macro.

X-1.41 Camiel Vanderhoeven 13-MAR-2008 Create init(), start_threads() and stop_threads() functions.

X-1.40 Camiel Vanderhoeven 05-MAR-2008 Multi-threading version.

X-1.39 Camiel Vanderhoeven 02-MAR-2008 Natural way to specify large numeric values ("10M") in the config file.

X-1.38 Brian Wheeler 29-FEB-2008 Restart serial port connection if lost.

X-1.37 Brian Wheeler 27-FEB-2008 Avoid compiler warnings.

X-1.36 Camiel Vanderhoeven 06-JAN-2008 Proper interrupt handling.

X-1.35 Camiel Vanderhoeven 02-JAN-2008 Cleanup.

X-1.34 Camiel Vanderhoeven 30-DEC-2007 Print file id on initialization.

X-1.33 Camiel Vanderhoeven 28-DEC-2007 Throw exceptions rather than just exiting when errors occur.

X-1.32 Camiel Vanderhoeven 28-DEC-2007 Keep the compiler happy.

X-1.31 Camiel Vanderhoeven 17-DEC-2007 SaveState file format 2.1

X-1.30 Camiel Vanderhoeven 16-DEC-2007 Added menu option to load state.

X-1.29 Brian Wheeler 10-DEC-2007 Better exec handling.

X-1.28 Camiel Vanderhoeven 10-DEC-2007 Use configurator.

X-1.27 Camiel Vanderhoeven 10-NOV-2007 Add possibility to save system state when not in debug mode.

X-1.26 Camiel Vanderhoeven 09-NOV-2007 Drop LF when received; OpenVMS expects to receive a CR only on its console. This allows entering the password during the OpenVMS 8.3 installation procedure.

X-1.25 Camiel Vanderhoeven 17-APR-2007 Allow a telnet client program to be in a directory containing spaces on Windows ("c:\program files\putty\putty.exe")

X-1.24 Camiel Vanderhoeven 17-APR-2007 Only include process.h on Windows.

X-1.23 Camiel Vanderhoeven 16-APR-2007 Never start a telnet client when running as lockstep slave, because we want to receive a connection from the master instead.

X-1.22 Camiel Vanderhoeven 16-APR-2007 Added possibility to start a Telnet client automatically.

X-1.21 Camiel Vanderhoeven 31-MAR-2007 Added old changelog comments.

X-1.20 Camiel Vanderhoeven 26-MAR-2007 Unintentional CVS commit / version number increase.

X-1.19 Camiel Vanderhoeven 27-FEB-2007 a) Moved tons of defines to telnet.h b) When this emulator is the lockstep-master, connect to the slave's serial port.

X-1.18 Camiel Vanderhoeven 27-FEB-2007 Define socklen_t as unsigned int on OpenVMS.

X-1.17 Camiel Vanderhoeven 27-FEB-2007 Add support for OpenVMS.

X-1.16 Camiel Vanderhoeven 20-FEB-2007 Use small menu to determine what to do when a <BREAK> is received.

X-1.15 Camiel Vanderhoeven 16-FEB-2007 Directly use the winsock functions, don't use the CTelnet class any more. windows and Linux code are more alike now.

X-1.14 Brian Wheeler 13-FEB-2007 Formatting.

X-1.13 Camiel Vanderhoeven 12-FEB-2007 Added comments.

X-1.12 Camiel Vanderhoeven 9-FEB-2007 Added comments.

X-1.11 Camiel Vanderhoeven 9-FEB-2007 Enable eating of first characters (needed for now for WINDOWS).

X-1.10 Brian Wheeler 7-FEB-2007 Disable eating of first characters. Treat Telnet commands properly for Linux.

X-1.9 Camiel Vanderhoeven 7-FEB-2007 Calls to trace_dev now use the TRC_DEVx macro's.

X-1.8 Camiel Vanderhoeven 3-FEB-2007 a) Restructure Linux/Windows code mixing to make more sense. b) Eat first incoming characters (so we don't burden the SRM with weird incoming characters.

X-1.7 Camiel Vanderhoeven 3-FEB-2007 No longer start PuTTy. We might just want to do something wild like connecting from a different machine!

X-1.6 Brian Wheeler 3-FEB-2007 Formatting.

X-1.5 Brian Wheeler 3-FEB-2007 Get the Telnet port number from the configuration file.

X-1.4 Brian Wheeler 3-FEB-2007 Add support for Linux.

X-1.3 Brian Wheeler 3-FEB-2007 64-bit literals made compatible with Linux/GCC/glibc.

X-1.2 Brian Wheeler 3-FEB-2007 Includes are now case-correct (necessary on Linux)

X-1.1 Camiel Vanderhoeven 19-JAN-2007 Initial version in CVS.

Author:
Camiel Vanderhoeven (camiel@camicom.com / http://www.camicom.com)

Definition in file Serial.cpp.

#include "StdAfx.h"
#include "Serial.h"
#include "System.h"
#include "AliM1543C.h"
#include "lockstep.h"

Go to the source code of this file.

Defines

#define RECV_TICKS   10
#define FIFO_SIZE   1024

Variables

int iCounter = 0
static u32 srl_magic1 = 0x5A15A15A
static u32 srl_magic2 = 0x1A51A51A


Define Documentation

#define FIFO_SIZE   1024

#define RECV_TICKS   10

Definition at line 191 of file Serial.cpp.

Referenced by CSerial::execute().


Variable Documentation

int iCounter = 0

Definition at line 193 of file Serial.cpp.

u32 srl_magic1 = 0x5A15A15A [static]

Definition at line 715 of file Serial.cpp.

Referenced by CSerial::RestoreState(), and CSerial::SaveState().

u32 srl_magic2 = 0x1A51A51A [static]

Definition at line 716 of file Serial.cpp.

Referenced by CSerial::RestoreState(), and CSerial::SaveState().


SourceForge.net Logo
Project space on SourceForge.net