1.1 --- a/examples/vga/main.c Sat Nov 10 21:39:51 2018 +0100
1.2 +++ b/examples/vga/main.c Sat Nov 10 22:11:32 2018 +0100
1.3 @@ -25,26 +25,21 @@
1.4 #include "init.h"
1.5 #include "pic32_c.h"
1.6 #include "utils.h"
1.7 -#include "vga_display.h"
1.8 #include "viewport.h"
1.9
1.10 /* Specific functionality. */
1.11
1.12 #include "devconfig.h"
1.13 #include "main.h"
1.14 -#include "vga.h"
1.15 +#include "vga_display.h"
1.16
1.17
1.18
1.19 -/* Define DMA channels if not indicated in the build configuration. */
1.20 -
1.21 -/* CPU-based transfers: no channels. */
1.22 +/* Define the scroll increment depending on how many DMA channels are used.
1.23 + CPU-driven transfers permit an increment of 1. */
1.24
1.25 #ifdef TRANSFER_CPU
1.26 #define SCROLL_XSTEP 1
1.27 -
1.28 -/* DMA-based transfers: single channel by default. */
1.29 -
1.30 #else
1.31 #define SCROLL_XSTEP LINE_CHANNELS
1.32 #endif