This is a version of vga640x480g customized to work well with MbedConsole
Fork of vga640x480g by
vga640x480g.h@3:be212d7dbb60, 2012-09-28 (annotated)
- Committer:
- earlz
- Date:
- Fri Sep 28 04:34:38 2012 +0000
- Revision:
- 3:be212d7dbb60
- Parent:
- 0:821e34a87609
Set interrupt a bit higher
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gertk | 0:821e34a87609 | 1 | #ifndef VGA640X400_H |
gertk | 0:821e34a87609 | 2 | #define VGA640X400_H |
gertk | 0:821e34a87609 | 3 | |
gertk | 0:821e34a87609 | 4 | extern unsigned char *vga_font8x16; |
gertk | 0:821e34a87609 | 5 | void vga_plot(int x,int y,char color); |
gertk | 0:821e34a87609 | 6 | void vga_putchar(int x,int y,int c,char color); |
gertk | 0:821e34a87609 | 7 | void vga_line(int x0, int y0, int x1, int y1, char color); |
gertk | 0:821e34a87609 | 8 | void vga_circle(int x0,int y0, int radius, char color); |
gertk | 0:821e34a87609 | 9 | void vga_box(int x0, int y0, int x1, int y1,char color); |
gertk | 0:821e34a87609 | 10 | void vga_putstring(int x,int y, char *s, char color); |
gertk | 0:821e34a87609 | 11 | void vga_filledbox(int x0, int y0, int x1, int y1,char color); |
gertk | 0:821e34a87609 | 12 | void vga_scroll(); |
gertk | 0:821e34a87609 | 13 | void vga_cls(); |
gertk | 0:821e34a87609 | 14 | |
gertk | 0:821e34a87609 | 15 | #define WHITE 1 |
gertk | 0:821e34a87609 | 16 | #define BLACK 0 |
gertk | 0:821e34a87609 | 17 | |
gertk | 0:821e34a87609 | 18 | |
gertk | 0:821e34a87609 | 19 | // Always call this as the very first thing in your application |
gertk | 0:821e34a87609 | 20 | // as it resets the CPU clock to 100MHz. It also resets UART0 |
gertk | 0:821e34a87609 | 21 | // to 9600 baud with the new clock. All other peripherals are off |
gertk | 0:821e34a87609 | 22 | // after a call to init_vga() |
gertk | 0:821e34a87609 | 23 | |
gertk | 0:821e34a87609 | 24 | void init_vga(void); |
gertk | 0:821e34a87609 | 25 | |
gertk | 0:821e34a87609 | 26 | #endif |