# HG changeset patch # User Paul Boddie # Date 1541887240 -3600 # Node ID a695872c3adb0bf94d32371c5cd40af5b771919f # Parent 2cf83f9160baa9fba13abbb1111ae0f6420aa67c Removed a superfluous header file. diff -r 2cf83f9160ba -r a695872c3adb include/display_config.h --- a/include/display_config.h Sat Nov 10 22:40:06 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/* - * Initialisation of application-specific display configuration. This requires - * the prior definition of various display properties. - * - * Copyright (C) 2018 Paul Boddie - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef __DISPLAY_CONFIG_H__ -#define __DISPLAY_CONFIG_H__ - -#include "display.h" -#include "vga.h" - -/* Define DMA channels if not indicated in the build configuration. */ - -/* CPU-based transfers: no channels. */ - -#ifdef TRANSFER_CPU -#define LINE_CHANNELS 0 - -/* DMA-based transfers: single channel by default. */ - -#else - -#ifndef LINE_CHANNELS -#define LINE_CHANNELS 1 -#endif - -#endif - -/* Define a structure containing the display parameters. */ - -display_config_t display_config = { - - /* Define display properties. */ - - .scanlines = SCANLINES, - .line_channels = LINE_CHANNELS, - .cell_size = CELL_SIZE, - .transfer_cell_size = TRANSFER_CELL_SIZE, - - /* Define display region properties. */ - - .hfreq_limit = HFREQ_LIMIT, - .hsync_start = HSYNC_START, - .hsync_end = HSYNC_END, - .visible_start = VISIBLE_START, - .vfp_start = VFP_START, - .vsync_start = VSYNC_START, - .vsync_end = VSYNC_END, - - }; - -#endif /* __DISPLAY_CONFIG_H__ */