Demo of low res colour vga video for stm32f3 discovery board

Dependencies:   STM32F3-Discovery-minimal

Fork of Space_Invaders_Demo by Martin Johnson

Committer:
MartinJohnson
Date:
Mon May 28 10:38:27 2018 +0000
Revision:
7:513afc954d6e
Parent:
5:594c9712697c
Child:
8:34fb94209517
VGA 640x480 60Hz

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MartinJohnson 0:404dae88af71 1 /***************************************************************************
MartinJohnson 0:404dae88af71 2 * STM32 VGA demo
MartinJohnson 0:404dae88af71 3 * Copyright (C) 2012 Artekit Italy
MartinJohnson 0:404dae88af71 4 * http://www.artekit.eu
MartinJohnson 0:404dae88af71 5 * Written by Ruben H. Meleca
MartinJohnson 0:404dae88af71 6
MartinJohnson 0:404dae88af71 7 ### video.h
MartinJohnson 0:404dae88af71 8
MartinJohnson 0:404dae88af71 9 # This program is free software; you can redistribute it and/or modify
MartinJohnson 0:404dae88af71 10 # it under the terms of the GNU General Public License as published by
MartinJohnson 0:404dae88af71 11 # the Free Software Foundation; either version 2 of the License, or
MartinJohnson 0:404dae88af71 12 # (at your option) any later version.
MartinJohnson 0:404dae88af71 13 #
MartinJohnson 0:404dae88af71 14 # This program is distributed in the hope that it will be useful,
MartinJohnson 0:404dae88af71 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
MartinJohnson 0:404dae88af71 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MartinJohnson 0:404dae88af71 17 # GNU General Public License for more details.
MartinJohnson 0:404dae88af71 18 #
MartinJohnson 0:404dae88af71 19 # You should have received a copy of the GNU General Public License
MartinJohnson 0:404dae88af71 20 # along with this program; if not, write to the Free Software
MartinJohnson 0:404dae88af71 21 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
MartinJohnson 0:404dae88af71 22
MartinJohnson 0:404dae88af71 23 ***************************************************************************/
MartinJohnson 0:404dae88af71 24
MartinJohnson 0:404dae88af71 25 #ifndef __VIDEO_H
MartinJohnson 0:404dae88af71 26 #define __VIDEO_H
MartinJohnson 0:404dae88af71 27
MartinJohnson 0:404dae88af71 28 #include "gdptypes.h"
MartinJohnson 0:404dae88af71 29
MartinJohnson 7:513afc954d6e 30 #define VID_HSIZE 150 //261 // Horizontal resolution (in bytes)
MartinJohnson 7:513afc954d6e 31 #define VID_VSIZE 240 // Vertical resolution (in lines)
MartinJohnson 0:404dae88af71 32
MartinJohnson 3:93e488fbb8a2 33 #define VID_PIXELS_X (VID_HSIZE)
MartinJohnson 0:404dae88af71 34 #define VID_PIXELS_Y VID_VSIZE
MartinJohnson 3:93e488fbb8a2 35
MartinJohnson 3:93e488fbb8a2 36 /*
MartinJohnson 0:404dae88af71 37 #define VID_PIXELS_XR (VID_PIXELS_X + 16)
MartinJohnson 0:404dae88af71 38 #define VID_HSIZE_R (VID_HSIZE + 2)
MartinJohnson 3:93e488fbb8a2 39 */
MartinJohnson 0:404dae88af71 40 // Function definitions
MartinJohnson 0:404dae88af71 41
MartinJohnson 0:404dae88af71 42 void vidInit(void);
MartinJohnson 0:404dae88af71 43 void vidClearScreen(void);
MartinJohnson 3:93e488fbb8a2 44 void waitForRefresh(void);
MartinJohnson 3:93e488fbb8a2 45 void vidNextBuffer(void);
MartinJohnson 0:404dae88af71 46
MartinJohnson 0:404dae88af71 47
MartinJohnson 0:404dae88af71 48
MartinJohnson 0:404dae88af71 49
MartinJohnson 0:404dae88af71 50
MartinJohnson 0:404dae88af71 51
MartinJohnson 0:404dae88af71 52
MartinJohnson 0:404dae88af71 53
MartinJohnson 0:404dae88af71 54 #endif // __VIDEO_H
MartinJohnson 0:404dae88af71 55
MartinJohnson 0:404dae88af71 56