1 /* 2 * Initialisation of application-specific display configuration. This requires 3 * the prior definition of various display properties. 4 * 5 * Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk> 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef __DISPLAY_CONFIG_H__ 22 #define __DISPLAY_CONFIG_H__ 23 24 #include "display.h" 25 #include "vga.h" 26 27 /* Define a structure containing the display parameters. */ 28 29 display_config_t display_config = { 30 31 /* Define display properties. */ 32 33 .scanlines = SCANLINES, 34 .cell_size = CELL_SIZE, 35 .transfer_cell_size = TRANSFER_CELL_SIZE, 36 37 /* Define display region properties. */ 38 39 .hfreq_limit = HFREQ_LIMIT, 40 .hsync_start = HSYNC_START, 41 .hsync_end = HSYNC_END, 42 .visible_start = VISIBLE_START, 43 .vfp_start = VFP_START, 44 .vsync_start = VSYNC_START, 45 .vsync_end = VSYNC_END, 46 47 }; 48 49 #endif /* __DISPLAY_CONFIG_H__ */