aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorreinelt <>2001-02-13 09:00:13 +0000
committerreinelt <>2001-02-13 09:00:13 +0000
commit458c179d311e32210cd7ef19b62be5af32ce1dd3 (patch)
tree6d80d403c07b6b9ffdc81fad68b919522bfff220 /display.c
parent0ae1c79ba49993e79360ba3d4bdc3059ad99159e (diff)
downloadlcd4linux-458c179d311e32210cd7ef19b62be5af32ce1dd3.tar.gz
[lcd4linux @ 2001-02-13 09:00:13 by reinelt]
prepared framework for GPO's (general purpose outputs)
Diffstat (limited to 'display.c')
-rw-r--r--display.c16
1 files changed, 15 insertions, 1 deletions
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;