define PARPORT_CONTROL* and PARPORT_STATUS* in frontend

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2897 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.11
Stéphane Fillod, F8CFE 2010-04-25 21:15:54 +00:00
rodzic c3bb49d5c5
commit ea156d0468
2 zmienionych plików z 36 dodań i 11 usunięć

Wyświetl plik

@ -1,8 +1,7 @@
/*
* Hamlib Rotator backend - Fodtrack parallel port
* Copyright (c) 2001-2005 by Stephane Fillod
* Copyright (c) 2001-2010 by Stephane Fillod
*
* $Id: fodtrack.c,v 1.8 2005-04-03 12:27:15 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -42,13 +41,6 @@
#include "fodtrack.h"
#ifndef PARPORT_CONTROL_AUTOFD
#define PARPORT_CONTROL_AUTOFD 0x2
#endif
#ifndef PARPORT_CONTROL_STROBE
#define PARPORT_CONTROL_STROBE 0x1
#endif
#ifndef CP_ACTIVE_LOW_BITS
#define CP_ACTIVE_LOW_BITS 0x0B
#endif

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib Interface - parallel communication header
* Copyright (c) 2000-2005 by Stephane Fillod and Frank Singleton
* Copyright (c) 2000-2003 by Frank Singleton
* Copyright (c) 2000-2010 by Stephane Fillod
*
* $Id: parallel.h,v 1.2 2005-04-03 12:27:16 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -26,6 +26,39 @@
#include <hamlib/rig.h>
#include "iofunc.h"
#ifdef HAVE_LINUX_PARPORT_H
#include <linux/parport.h>
#endif
#ifndef PARPORT_CONTROL_STROBE
#define PARPORT_CONTROL_STROBE 0x1
#endif
#ifndef PARPORT_CONTROL_AUTOFD
#define PARPORT_CONTROL_AUTOFD 0x2
#endif
#ifndef PARPORT_CONTROL_INIT
#define PARPORT_CONTROL_INIT 0x4
#endif
#ifndef PARPORT_CONTROL_SELECT
#define PARPORT_CONTROL_SELECT 0x8
#endif
#ifndef PARPORT_STATUS_ERROR
#define PARPORT_STATUS_ERROR 0x8
#endif
#ifndef PARPORT_STATUS_SELECT
#define PARPORT_STATUS_SELECT 0x10
#endif
#ifndef PARPORT_STATUS_PAPEROUT
#define PARPORT_STATUS_PAPEROUT 0x20
#endif
#ifndef PARPORT_STATUS_ACK
#define PARPORT_STATUS_ACK 0x40
#endif
#ifndef PARPORT_STATUS_BUSY
#define PARPORT_STATUS_BUSY 0x80
#endif
__BEGIN_DECLS
/* Hamlib internal use, see rig.c */