/* tty device */
/* linux	"/dev/cua1" */
/* NEWS-OS 4.2  "/dev/tty00" */
/* NEWS-OS 6.X	"/dev/term/00" */
/* EWS4800	"/dev/term/00" */
/* SunOS 4.1.4	"/dev/ttya" */
/* Solaris2.3	"/dev/ttya" */
/* BSD/OS 2.0	"/dev/tty01" */
/* Windows NT "COM2" */

#ifdef WIN32
#define RSPORT "COM2"
#else
#define RSPORT	"/dev/cua1"     
#endif 

#define	STX	0x02
#define	ETX	0x03
#define	ENQ	0x05
#define	ACK	0x06
#define	DC2	0x12
#define	NAK	0x15
#define	ETB	0x17


#define DEFAULTBAUD B9600
#define LIGHT 5
#define TOP   4
#define HIGH  3
#define MID   2
#define DEFAULT 1

#define JPEG 0
#define PPM_P 1
#define PPM_T 2
#define RGB_P 3
#define RGB_T 4
#define BMP_P 5
#define BMP_T 6
#define CAM 7

/* for function prototypes */
#ifdef STDC_HEADERS
# define P__(x) x
#else
# define P__(x) ()
#endif

void	Exit P__((int));


#define RETRY   100

#define THUMBNAIL_WIDTH 52
#define THUMBNAIL_HEIGHT 36
#define PICTURE_WIDTH 480
#define PICTURE_HEIGHT 240

#define THUMBNAIL_MAXSIZ 4*1024
#define	JPEG_MAXSIZ	32*1024
#define	YCC_MAXSIZ	154*1024

