aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drv_generic_gpio.c')
-rw-r--r--drv_generic_gpio.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/drv_generic_gpio.c b/drv_generic_gpio.c
index 0bed2d4..b613b4e 100644
--- a/drv_generic_gpio.c
+++ b/drv_generic_gpio.c
@@ -1,4 +1,5 @@
-/* $Id: drv_generic_gpio.c,v 1.4 2006/01/05 18:56:57 reinelt Exp $
+/* $Id: drv_generic_gpio.c 751 2007-01-20 13:52:43Z michael $
+ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv_generic_gpio.c $
*
* generic driver helper for GPO's
*
@@ -21,20 +22,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- *
- * $Log: drv_generic_gpio.c,v $
- * Revision 1.4 2006/01/05 18:56:57 reinelt
- * more GPO stuff
- *
- * Revision 1.3 2006/01/03 06:13:45 reinelt
- * GPIO's for MatrixOrbital
- *
- * Revision 1.2 2005/12/20 07:07:44 reinelt
- * further work on GPO's, HD44780 GPO support
- *
- * Revision 1.1 2005/12/18 16:18:36 reinelt
- * GPO's added again
- *
*/
/*
@@ -232,8 +219,10 @@ int drv_generic_gpio_get(const int num)
int drv_generic_gpio_draw(WIDGET * W)
{
WIDGET_GPO *gpo = W->data;
- int num = gpo->num;
- int val = gpo->val;
+ int num, val;
+
+ num = W->row;
+ val = P2N(&gpo->expression);
if (num < 0 || num >= GPOS) {
error("%s: gpio_draw(%d): GPO out of range (0..%d)", Driver, num + 1, GPOS);