blabla
vga640x400.h@4:3f0bd68a4dda, 2011-08-10 (annotated)
- Committer:
- Ivop
- Date:
- Wed Aug 10 11:31:23 2011 +0000
- Revision:
- 4:3f0bd68a4dda
- Parent:
- 0:78fa88bb24cb
- Child:
- 5:c34147b65f7d
documentation, 2nd draft
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ivop | 0:78fa88bb24cb | 1 | #ifndef VGA640X400_H |
Ivop | 0:78fa88bb24cb | 2 | #define VGA640X400_H |
Ivop | 0:78fa88bb24cb | 3 | |
Ivop | 4:3f0bd68a4dda | 4 | extern unsigned char text_buffer[80*25]; ///< 80x25 screen buffer, i.e. 25 lines of 80 characters. |
Ivop | 4:3f0bd68a4dda | 5 | extern unsigned char *font; ///< Pointer to the user supplied font. |
Ivop | 4:3f0bd68a4dda | 6 | ///< Each character is 8 pixels wide and 16 pixels high. |
Ivop | 4:3f0bd68a4dda | 7 | ///< The font consists of 16 groups of 256 bytes. |
Ivop | 4:3f0bd68a4dda | 8 | ///< i.e. 256 times the first byte of each character, then |
Ivop | 4:3f0bd68a4dda | 9 | ///< 256 times second byte of each character, and so on. |
Ivop | 4:3f0bd68a4dda | 10 | ///< This differs from the most common way bitmap fonts are |
Ivop | 4:3f0bd68a4dda | 11 | ///< ordered, so you have to preprocess your font data first. |
Ivop | 4:3f0bd68a4dda | 12 | |
Ivop | 0:78fa88bb24cb | 13 | |
Ivop | 4:3f0bd68a4dda | 14 | /** Initialize the VGA signal |
Ivop | 4:3f0bd68a4dda | 15 | * |
Ivop | 4:3f0bd68a4dda | 16 | * This function should be the very first thing you call, before doing anything else. |
Ivop | 4:3f0bd68a4dda | 17 | * It turns off all peripherals, sets the main clock to 100MHz (instead of the 96MHz default of the mbed) |
Ivop | 4:3f0bd68a4dda | 18 | * and switches on PWM, I2S and DMA. |
Ivop | 4:3f0bd68a4dda | 19 | */ |
Ivop | 0:78fa88bb24cb | 20 | void init_vga(void); |
Ivop | 0:78fa88bb24cb | 21 | |
Ivop | 0:78fa88bb24cb | 22 | #endif |