diff options
author | reinelt <> | 2001-02-13 09:00:13 +0000 |
---|---|---|
committer | reinelt <> | 2001-02-13 09:00:13 +0000 |
commit | 458c179d311e32210cd7ef19b62be5af32ce1dd3 (patch) | |
tree | 6d80d403c07b6b9ffdc81fad68b919522bfff220 /display.c | |
parent | 0ae1c79ba49993e79360ba3d4bdc3059ad99159e (diff) | |
download | lcd4linux-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.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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; |