From 458c179d311e32210cd7ef19b62be5af32ce1dd3 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Tue, 13 Feb 2001 09:00:13 +0000 Subject: [lcd4linux @ 2001-02-13 09:00:13 by reinelt] prepared framework for GPO's (general purpose outputs) --- display.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'display.c') diff --git a/display.c b/display.c index 7d6f673..497cf42 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.21 2000/11/28 16:46:11 reinelt Exp $ +/* $Id: display.c,v 1.22 2001/02/13 09:00:13 reinelt Exp $ * * framework for device drivers * @@ -20,6 +20,10 @@ * * * $Log: display.c,v $ + * Revision 1.22 2001/02/13 09:00:13 reinelt + * + * prepared framework for GPO's (general purpose outputs) + * * Revision 1.21 2000/11/28 16:46:11 reinelt * * first try to support display of SIN router @@ -136,6 +140,9 @@ * int lcd_bar (int type, int row, int col, int max, int len1, int len2) * draws a specified bar at row, col with len * + * int lcd_gpo (int num, int val) + * sets GPO #num to val + * * int lcd_flush (void) * flushes the framebuffer to the display * @@ -253,6 +260,13 @@ int lcd_bar (int type, int row, int col, int max, int len1, int len2) return Lcd->bar (type & BAR_HV, row-1, col-1, max, len1, len2); } +int lcd_gpo (int num, int val) +{ + if (num<1 || num>Lcd->gpos) return -1; + if (Lcd->gpo==NULL) return 0; + return Lcd->gpo(num-1, val); +} + int lcd_flush (void) { if (Lcd->flush==NULL) return 0; -- cgit v1.2.3