1.1 --- a/examples/vga-timer/vga.h Tue Oct 23 19:29:55 2018 +0200
1.2 +++ b/examples/vga-timer/vga.h Tue Oct 23 21:34:54 2018 +0200
1.3 @@ -20,22 +20,23 @@
1.4 #ifndef __VGA_H__
1.5 #define __VGA_H__
1.6
1.7 -#define LINE_LENGTH 80 /* pixels */
1.8 -#define LINE_COUNT 256 /* distinct display lines */
1.9 +#define LINE_LENGTH 92 /* pixels */
1.10 +#define LINE_COUNT 128 /* distinct display lines */
1.11 +#define LINE_MULTIPLIER 4
1.12
1.13 #define ZERO_LENGTH 1 /* pixels */
1.14
1.15 /* 24MHz cycle measurements. */
1.16
1.17 #define HFREQ_LIMIT 643
1.18 -#define HSYNC_START 523
1.19 +#define HSYNC_START 504
1.20 #define HSYNC_LIMIT 40
1.21 #define HSYNC_END (HSYNC_START + HSYNC_LIMIT)
1.22
1.23 /* Horizontal lines, back porch end. */
1.24
1.25 #define VISIBLE_START 70
1.26 -#define VFP_START (VISIBLE_START + 2 * LINE_COUNT)
1.27 +#define VFP_START (VISIBLE_START + LINE_MULTIPLIER * LINE_COUNT)
1.28
1.29 /* Horizontal lines, front porch end. */
1.30
1.31 @@ -48,6 +49,10 @@
1.32 /* Framebuffer properties. */
1.33
1.34 #define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)
1.35 -#define LINE_MULTIPLIER 2
1.36 +
1.37 +/* Transfer and pixel allocation properties. */
1.38 +
1.39 +#define TRANSFER_CELL_SIZE 1
1.40 +#define CELL_SIZE 1
1.41
1.42 #endif /* __VGA_H__ */