Demo of low res colour vga video for stm32f3 discovery board
Dependencies: STM32F3-Discovery-minimal
Fork of Space_Invaders_Demo by
video.h@17:833f1b69e11d, 2019-04-03 (annotated)
- Committer:
- MartinJohnson
- Date:
- Wed Apr 03 22:05:56 2019 +0000
- Revision:
- 17:833f1b69e11d
- Parent:
- 14:3035b3271395
update library
Who changed what in which revision?
User | Revision | Line number | New 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 | 14:3035b3271395 | 30 | #define VID_HSIZE 196//150 //261 // Horizontal resolution (in bytes) |
MartinJohnson | 14:3035b3271395 | 31 | #define VID_VSIZE 160//240 // Vertical resolution (in lines) |
MartinJohnson | 14:3035b3271395 | 32 | |
MartinJohnson | 14:3035b3271395 | 33 | #define HTOTAL (VID_HSIZE+5) |
MartinJohnson | 0:404dae88af71 | 34 | |
MartinJohnson | 3:93e488fbb8a2 | 35 | #define VID_PIXELS_X (VID_HSIZE) |
MartinJohnson | 0:404dae88af71 | 36 | #define VID_PIXELS_Y VID_VSIZE |
MartinJohnson | 3:93e488fbb8a2 | 37 | |
MartinJohnson | 0:404dae88af71 | 38 | // Function definitions |
MartinJohnson | 0:404dae88af71 | 39 | |
MartinJohnson | 0:404dae88af71 | 40 | void vidInit(void); |
MartinJohnson | 0:404dae88af71 | 41 | void vidClearScreen(void); |
MartinJohnson | 3:93e488fbb8a2 | 42 | void waitForRefresh(void); |
MartinJohnson | 3:93e488fbb8a2 | 43 | void vidNextBuffer(void); |
MartinJohnson | 0:404dae88af71 | 44 | |
MartinJohnson | 0:404dae88af71 | 45 | |
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 | #endif // __VIDEO_H |
MartinJohnson | 0:404dae88af71 | 53 | |
MartinJohnson | 0:404dae88af71 | 54 |