/* $Id$ * $URL$ * * generic driver helper for parallel port displays * * Copyright (C) 1999, 2000 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* * * exported fuctions: * * int drv_generic_parport_open (void) * reads 'Port' entry from config and opens * the parallel port * returns 0 if ok, -1 on failure * * int drv_generic_parport_close (void) * closes parallel port * returns 0 if ok, -1 on failure * * unsigned char drv_generic_parport_wire_ctrl (char *name, char *deflt) * reads wiring for one control signal from config * returns DRV_GENERIC_PARPORT_CONTROL_* or 255 on error * * unsigned char drv_generic_parport_hardwire_ctrl (char *name) * returns hardwiring for one control signal * same as above, but does not read from config, * but checks the config and emits a warning that the config * entry will be ignored * returns DRV_GENERIC_PARPORT_CONTROL_* or 255 on error * * unsigned char drv_generic_parport_wire_status (char *name, char *deflt) * reads wiring for one status signal from config * returns DRV_GENERIC_PARPORT_STATUS_* or 255 on error * * unsigned char drv_generic_parport_wire_data (char *name, char *deflt) * reads wiring for one data signal from config * returns 1< to for nanoseconds * * void drv_generic_parport_data (unsigned char value) * put data bits on DB1..DB8 * * unsigned char drv_generic_parport_read (void) * reads a byte from the parallel port * * void drv_generic_parport_debug(void) * prints status of control lines * */ #ifndef _DRV_GENERIC_PARPORT_H_ #define _DRV_GENERIC_PARPORT_H_ int drv_generic_parport_open(const char *section, const char *driver); int drv_generic_parport_close(void); unsigned char drv_generic_parport_wire_ctrl(const char *name, const char *deflt); unsigned char drv_generic_parport_hardwire_ctrl(const char *name, const char *deflt); unsigned char drv_generic_parport_wire_status(const char *name, const char *deflt); unsigned char drv_generic_parport_wire_data(const char *name, const char *deflt); void drv_generic_parport_direction(const int direction); unsigned char drv_generic_parport_status(void); void drv_generic_parport_control(const unsigned char mask, const unsigned char value); void drv_generic_parport_toggle(const unsigned char bit, const int level, const unsigned long delay); void drv_generic_parport_data(const unsigned char data); unsigned char drv_generic_parport_read(void); void drv_generic_parport_debug(void); #endif (LCD::contrast and LCD::backlight segfaulting) fixedmichael1-2/+2 2010-04-22drv_picoLCDGraphic.c: changed two annoying info messages to debugging messagesmzuther1-2/+2 2010-04-18drv_picoLCDGraphic.c: alternative use of keypad widgets (instead of GPIO)mzuther1-2/+78 2010-04-18X11 driver: correctly handle key releasesmzuther2-17/+28 2010-03-12changed hardcoded pixel resolution to configuration; usb_*_np functions only ...volker1-21/+30 2010-02-23'Fix the huawei e220 at commands' by Jarmichael1-12/+9 2010-02-15drv_picoLCDGraphic.c: minimum USB read timeout is now 1 msmzuther1-1/+1 2010-02-14drv_picoLCDGraphic.c: added configuration for USB read timeoutmzuther1-1/+9 2010-02-14indent.sh runmichael1-172/+171 2010-02-14plugin_huawei-fix-interval-check_V2.patch from Jarmichael1-35/+35 2010-02-12Improved config behavior.mjona1-9/+32 2010-02-12Fixed a segmentation fault bug in cfg_get().mjona1-1/+1 2010-02-11All static memory allocations were turned into dynamical ones.mjona1-128/+200 2010-02-07timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)mzuther1-7/+4 2010-02-07added grouping of widgets by update interval (new file "timer_group.c")mzuther13-168/+441 2010-02-07BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4 2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4 2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3 2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10 2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0 2010-02-04According to its man page, timercmp() is broken on some systems -- applied th...mzuther1-1/+1 2010-02-04small warning removedmichael1-1/+1 2010-02-04clear errno after creating the FIFO by Claas Hilbrechtmichael1-0/+2