Three-pin 640x400 VGA Console Mode

Dependents:   projet_AWA_testVGA2

Committer:
Ivop
Date:
Wed Aug 10 11:34:11 2011 +0000
Revision:
5:c34147b65f7d
Parent:
4:3f0bd68a4dda
Child:
6:1d73ad03f172
documentation, 3rd draft

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ivop 0:78fa88bb24cb 1 #ifndef VGA640X400_H
Ivop 0:78fa88bb24cb 2 #define VGA640X400_H
Ivop 0:78fa88bb24cb 3
Ivop 5:c34147b65f7d 4 /**
Ivop 5:c34147b65f7d 5 * @file vga640x400.h
Ivop 5:c34147b65f7d 6 * Generate a 640x400 VGA signal
Ivop 5:c34147b65f7d 7 */
Ivop 5:c34147b65f7d 8
Ivop 4:3f0bd68a4dda 9 extern unsigned char text_buffer[80*25]; ///< 80x25 screen buffer, i.e. 25 lines of 80 characters.
Ivop 4:3f0bd68a4dda 10 extern unsigned char *font; ///< Pointer to the user supplied font.
Ivop 4:3f0bd68a4dda 11 ///< Each character is 8 pixels wide and 16 pixels high.
Ivop 4:3f0bd68a4dda 12 ///< The font consists of 16 groups of 256 bytes.
Ivop 4:3f0bd68a4dda 13 ///< i.e. 256 times the first byte of each character, then
Ivop 4:3f0bd68a4dda 14 ///< 256 times second byte of each character, and so on.
Ivop 4:3f0bd68a4dda 15 ///< This differs from the most common way bitmap fonts are
Ivop 4:3f0bd68a4dda 16 ///< ordered, so you have to preprocess your font data first.
Ivop 4:3f0bd68a4dda 17
Ivop 0:78fa88bb24cb 18
Ivop 4:3f0bd68a4dda 19 /** Initialize the VGA signal
Ivop 4:3f0bd68a4dda 20 *
Ivop 4:3f0bd68a4dda 21 * This function should be the very first thing you call, before doing anything else.
Ivop 4:3f0bd68a4dda 22 * It turns off all peripherals, sets the main clock to 100MHz (instead of the 96MHz default of the mbed)
Ivop 4:3f0bd68a4dda 23 * and switches on PWM, I2S and DMA.
Ivop 4:3f0bd68a4dda 24 */
Ivop 0:78fa88bb24cb 25 void init_vga(void);
Ivop 0:78fa88bb24cb 26
Ivop 0:78fa88bb24cb 27 #endif