aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--T6963.c47
-rw-r--r--udelay.c11
2 files changed, 48 insertions, 10 deletions
diff --git a/T6963.c b/T6963.c
index b76d510..a659733 100644
--- a/T6963.c
+++ b/T6963.c
@@ -1,4 +1,4 @@
-/* $Id: T6963.c,v 1.3 2002/08/19 04:41:20 reinelt Exp $
+/* $Id: T6963.c,v 1.4 2002/08/21 06:09:53 reinelt Exp $
*
* driver for display modules based on the Toshiba T6963 chip
*
@@ -20,6 +20,9 @@
*
*
* $Log: T6963.c,v $
+ * Revision 1.4 2002/08/21 06:09:53 reinelt
+ * some T6963 fixes, ndelay wrap
+ *
* Revision 1.3 2002/08/19 04:41:20 reinelt
* introduced bar.c, moved bar stuff from display.h to bar.h
*
@@ -93,7 +96,6 @@
#define XRES 6
#define YRES 8
-#define BARS ( BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 | BAR_V2 | BAR_T)
static LCD Lcd;
@@ -169,7 +171,6 @@ void T6_status2 (void)
break;
}
ioctl (PPfd, PPRDATA, &data);
- // } while ((data & 0x08) == 0);
} while ((data & 0x08) != 0x08);
// rise RD and CE
@@ -408,10 +409,10 @@ int T6_init (LCD *Self)
debug ("setting %d columns", Lcd.cols);
T6_send_word (0x40, 0x0000); // Set Text Home Address
- T6_send_word (0x41, 40); // Set Text Area
+ T6_send_word (0x41, Lcd.cols); // Set Text Area
T6_send_word (0x42, 0x0200); // Set Graphic Home Address
- T6_send_word (0x43, 40); // Set Graphic Area
+ T6_send_word (0x43, Lcd.cols); // Set Graphic Area
T6_write_cmd (0x80); // Mode Set: OR mode, Internal CG RAM mode
T6_send_word (0x22, 0x0002); // Set Offset Register
@@ -437,7 +438,8 @@ int T6_bar (int type, int row, int col, int max, int len1, int len2)
int T6_flush (void)
{
int i, j, e;
-
+ int count=0;
+
memset(Buffer1,0,Lcd.cols*Lcd.rows*Lcd.yres*sizeof(*Buffer1));
for (i=0; i<Lcd.cols*Lcd.rows*Lcd.yres; i++) {
@@ -457,6 +459,7 @@ int T6_flush (void)
}
}
T6_memcpy (j, Buffer1+j, i-j-e+1);
+ count+=i-j-e+1;
}
memcpy(Buffer2,Buffer1,Lcd.cols*Lcd.rows*Lcd.yres*sizeof(*Buffer1));
@@ -478,7 +481,35 @@ int T6_quit (void)
}
LCD T6963[] = {
- { "TLC1091", 16,40,XRES,YRES,BARS,0,T6_init,T6_clear,T6_put,T6_bar,NULL,T6_flush,T6_quit },
- { "DMF5002N",14,40,XRES,YRES,BARS,0,T6_init,T6_clear,T6_put,T6_bar,NULL,T6_flush,T6_quit },
+ { name: "TLC1091",
+ rows: 16,
+ cols: 40,
+ xres: 6,
+ yres: 8,
+ bars: BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 | BAR_V2 | BAR_T,
+ gpos: 0,
+ init: T6_init,
+ clear: T6_clear,
+ put: T6_put,
+ bar: T6_bar,
+ gpo: NULL,
+ flush: T6_flush,
+ quit: T6_quit
+ },
+ { name: "DMF5002N",
+ rows: 14,
+ cols: 16,
+ xres: 8,
+ yres: 8,
+ bars: BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 | BAR_V2 | BAR_T,
+ gpos: 0,
+ init: T6_init,
+ clear: T6_clear,
+ put: T6_put,
+ bar: T6_bar,
+ gpo: NULL,
+ flush: T6_flush,
+ quit: T6_quit
+ },
{ NULL }
};
diff --git a/udelay.c b/udelay.c
index 2180f66..6077dd0 100644
--- a/udelay.c
+++ b/udelay.c
@@ -1,4 +1,4 @@
-/* $Id: udelay.c,v 1.8 2002/08/17 14:14:21 reinelt Exp $
+/* $Id: udelay.c,v 1.9 2002/08/21 06:09:53 reinelt Exp $
*
* short delays
*
@@ -20,6 +20,9 @@
*
*
* $Log: udelay.c,v $
+ * Revision 1.9 2002/08/21 06:09:53 reinelt
+ * some T6963 fixes, ndelay wrap
+ *
* Revision 1.8 2002/08/17 14:14:21 reinelt
*
* USBLCD fixes
@@ -246,10 +249,14 @@ void ndelay (unsigned long nsec)
do {
rep_nop();
rdtscl(t2);
+ // Fixme
+ if (t2<t1) {
+ debug ("ndelay wrap: t1=%d t2=%d", t1, t2);
+ }
} while ((t2-t1)<nsec);
} else
-
+
#endif
{
0%2bgit20161227.ac7535a-1&id=fa79907807c7615fb61006bc4479da877a05b0a9&follow=1'>Fix up packaging to account for move to DVBv5Jonathan McCrohan2-2/+6 2014-10-20delete d/dtv-scan-files.install; Upstream now supplies a MakefileJonathan McCrohan2-4/+1 2014-10-15d/control: update Standards Version to 3.9.6Jonathan McCrohan2-1/+3 2014-10-15d/control: add Build-Depends on dvb-toolsJonathan McCrohan2-1/+2 2014-10-15New Upstream Snapshot (commit d26b627)Jonathan McCrohan1-0/+10 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9