Three-pin 640x400 VGA Console Mode
Dependents: projet_AWA_testVGA2
vga640x400.h@0:78fa88bb24cb, 2011-07-03 (annotated)
- Committer:
- Ivop
- Date:
- Sun Jul 03 18:13:20 2011 +0000
- Revision:
- 0:78fa88bb24cb
- Child:
- 4:3f0bd68a4dda
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 | 0:78fa88bb24cb | 4 | extern unsigned char text_buffer[80*25]; |
Ivop | 0:78fa88bb24cb | 5 | extern unsigned char *font; |
Ivop | 0:78fa88bb24cb | 6 | |
Ivop | 0:78fa88bb24cb | 7 | // Always call this as the very first thing in your application |
Ivop | 0:78fa88bb24cb | 8 | // as it resets the CPU clock to 100MHz. It also resets UART0 |
Ivop | 0:78fa88bb24cb | 9 | // to 9600 baud with the new clock. All other peripherals are off |
Ivop | 0:78fa88bb24cb | 10 | // after a call to init_vga() |
Ivop | 0:78fa88bb24cb | 11 | |
Ivop | 0:78fa88bb24cb | 12 | void init_vga(void); |
Ivop | 0:78fa88bb24cb | 13 | |
Ivop | 0:78fa88bb24cb | 14 | #endif |