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