only tested and compiled on OS/2 git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@792 67ed7778-7388-44ab-90cf-0a291f65f57c
61 lines
1.0 KiB
C
61 lines
1.0 KiB
C
/* 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" */
|
|
/* FreeBSD "/dev/cuaa0" */
|
|
/* Windows NT "COM2" */
|
|
/* NEXTSTEP "/dev/ttya" */
|
|
/* IRIX "/dev/ttyf1" */
|
|
|
|
#if defined(WIN32) || defined(OS2)
|
|
#define RSPORT "COM1"
|
|
#else
|
|
#ifdef DOS
|
|
#define RSPORT "AUX1"
|
|
#else
|
|
#ifdef __NetBSD__
|
|
#define RSPORT "/dev/tty00"
|
|
#else
|
|
#define RSPORT "/dev/ttyS0"
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define BOFRAME 0xC0
|
|
#define EOFRAME 0xC1
|
|
#define CESCAPE 0x7D
|
|
|
|
#define DEFAULTBAUD B38400
|
|
|
|
|
|
#define JPEG 0
|
|
#define JPEG_T 1
|
|
#define PMP 2
|
|
#define PMX 3
|
|
|
|
/* 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 640
|
|
#define PICTURE_HEIGHT 480
|
|
|
|
#define THUMBNAIL_MAXSIZ 4*1024
|
|
#define JPEG_MAXSIZ 130*1024
|
|
#define PMF_MAXSIZ 3*1024
|
|
|