1.1 --- a/include/display_config.h Wed Nov 07 00:12:44 2018 +0100
1.2 +++ b/include/display_config.h Thu Nov 08 18:32:07 2018 +0100
1.3 @@ -24,6 +24,23 @@
1.4 #include "display.h"
1.5 #include "vga.h"
1.6
1.7 +/* Define DMA channels if not indicated in the build configuration. */
1.8 +
1.9 +/* CPU-based transfers: no channels. */
1.10 +
1.11 +#ifdef TRANSFER_CPU
1.12 +#define LINE_CHANNELS 0
1.13 +
1.14 +/* DMA-based transfers: single channel by default. */
1.15 +
1.16 +#else
1.17 +
1.18 +#ifndef LINE_CHANNELS
1.19 +#define LINE_CHANNELS 1
1.20 +#endif
1.21 +
1.22 +#endif
1.23 +
1.24 /* Define a structure containing the display parameters. */
1.25
1.26 display_config_t display_config = {
1.27 @@ -31,6 +48,7 @@
1.28 /* Define display properties. */
1.29
1.30 .scanlines = SCANLINES,
1.31 + .line_channels = LINE_CHANNELS,
1.32 .cell_size = CELL_SIZE,
1.33 .transfer_cell_size = TRANSFER_CELL_SIZE,
1.34