aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-02-13 09:00:13 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-02-13 09:00:13 +0000
commit468d6dd5c3767a2db881230ecc629ef35ab29110 (patch)
tree6d80d403c07b6b9ffdc81fad68b919522bfff220 /display.c
parent4af4f9434259a369bdfaafbe75aa41163f0296c4 (diff)
downloadlcd4linux-468d6dd5c3767a2db881230ecc629ef35ab29110.tar.gz
[lcd4linux @ 2001-02-13 09:00:13 by reinelt]
prepared framework for GPO's (general purpose outputs) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@77 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-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;