1.1 --- a/examples/vga-dual/vga.h Tue Oct 30 19:23:34 2018 +0100
1.2 +++ b/examples/vga-dual/vga.h Tue Oct 30 20:19:45 2018 +0100
1.3 @@ -20,9 +20,11 @@
1.4 #ifndef __VGA_H__
1.5 #define __VGA_H__
1.6
1.7 +#include "vga_common.h"
1.8 +
1.9 #define LINE_LENGTH 160 /* pixels */
1.10 #define LINE_COUNT 256 /* distinct display lines */
1.11 -#define LINE_MULTIPLIER 2
1.12 +#define LINE_MULTIPLIER (SCANLINES / LINE_COUNT)
1.13
1.14 /* 24MHz cycle measurements. */
1.15
1.16 @@ -31,19 +33,6 @@
1.17 #define HSYNC_LIMIT 64
1.18 #define HSYNC_END (HSYNC_START + HSYNC_LIMIT)
1.19
1.20 -/* Horizontal lines, back porch end. */
1.21 -
1.22 -#define VISIBLE_START 70
1.23 -#define VFP_START (VISIBLE_START + LINE_MULTIPLIER * LINE_COUNT)
1.24 -
1.25 -/* Horizontal lines, front porch end. */
1.26 -
1.27 -#define VSYNC_START 620
1.28 -
1.29 -/* Horizontal lines, back porch start. */
1.30 -
1.31 -#define VSYNC_END 622
1.32 -
1.33 /* Framebuffer properties. */
1.34
1.35 #define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)