1.1 --- a/examples/vga/main.c Sat Nov 10 19:20:13 2018 +0100
1.2 +++ b/examples/vga/main.c Sat Nov 10 21:30:09 2018 +0100
1.3 @@ -31,8 +31,8 @@
1.4 /* Specific functionality. */
1.5
1.6 #include "devconfig.h"
1.7 -#include "display_config.h"
1.8 #include "main.h"
1.9 +#include "vga.h"
1.10
1.11
1.12
1.13 @@ -87,13 +87,9 @@
1.14
1.15
1.16
1.17 -/* Framebuffer memory. */
1.18 -
1.19 -static uint8_t framebuffer[FRAME_SIZE * FRAME_COUNT];
1.20 +/* Initialise memory for a multi-frame display. */
1.21
1.22 -/* Screen start values for each frame. */
1.23 -
1.24 -uint8_t *screen_starts[FRAME_COUNT];
1.25 +static Display(display_config, LINE_LENGTH, LINE_COUNT, FRAME_COUNT);
1.26
1.27
1.28
1.29 @@ -347,10 +343,9 @@
1.30 uart_init(1, FPB, 115200);
1.31 uart_on(1);
1.32
1.33 - /* Initialise memory for a double-buffered display. */
1.34 + /* Set the display to a well-defined state. */
1.35
1.36 - init_display(&display_config, framebuffer, LINE_LENGTH, LINE_COUNT,
1.37 - FRAME_COUNT, screen_starts);
1.38 + init_display(&display_config);
1.39
1.40 /* Initialise VGA output with one or two line channels, configuring a line
1.41 timer and any transfer timer, with an initiating channel being introduced