1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 20:33:45 +02:00

ubb-vga: make lines end in black (and not in overscan)

- ubb-vga.c (line): send a 0 word at the end of the line, to avoid
  overscan (we use PIO to synchronize with CPU timing)
- ubb-vga.c (mode_db): updated line length of 640x480 resolutions for
  correct termination
This commit is contained in:
Werner Almesberger 2011-05-02 05:16:19 -03:00
parent 0dbf29e599
commit 3ea6b9852e

View File

@ -51,8 +51,8 @@ static int bad;
static const struct mode mode_db[] = {
/* name xres yres clkdiv vfront hsync hback htotal */
/* vsync vback */
{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.5) },
{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(27.5) },
{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.7) },
{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(24.8) },
{ "800x600/54", 800, 600, 8, 2, 32, 14, US(4.81), US(0.79), US(28.7) },
{ "800x600/56", 800, 600, 8, 2, 1, 22, US(2.00), US(3.56), US(28.5) },
@ -324,6 +324,7 @@ static void line(unsigned long line)
PDFUNC = CMD;
until(mode->line_cycles);
MSC_TXFIFO = 0;
if (MSC_STAT & 3)
bad++;
}