summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorChristian Vogel <vogelchr@vogel.cx>2010-10-11 20:54:57 +0200
committerHarald Welte <laforge@gnumonks.org>2012-02-03 23:59:35 +0100
commitdf4218c8fd6d4a20c8840fd6246e41c58172bc09 (patch)
treeaff0c481d77ab8a070b847fcbdc4a26c63fce0a3 /src/target/firmware/include
parent080124619d964ccb0ebcb3fb9703423e79029b1f (diff)
Calypso FB: C155 / SSD1783 Color Support
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r--src/target/firmware/include/fb/fb_rgb332.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/target/firmware/include/fb/fb_rgb332.h b/src/target/firmware/include/fb/fb_rgb332.h
new file mode 100644
index 00000000..8bf8168f
--- /dev/null
+++ b/src/target/firmware/include/fb/fb_rgb332.h
@@ -0,0 +1,27 @@
+#ifndef FB_RGB332_H
+#define FB_RGB332_H
+
+/* RGB framebuffer with 1 byte per pixel, bits mapped as RRRGGGBB */
+
+struct fb_rgb332 {
+ uint8_t *mem; /* set to backingstore memory */
+ uint16_t damage_x1,damage_y1; /* current damage window, ul (incl) */
+ uint16_t damage_x2,damage_y2; /* current damage window, lr (excl) */
+};
+
+extern void fb_rgb332_clear();
+
+/* draw a box from cursor to x,y */
+extern void fb_rgb332_boxto(uint16_t x,uint16_t y);
+/* draw a line from cursor to x,y */
+extern void fb_rgb332_lineto(uint16_t x,uint16_t y);
+
+/* put string str onto framebuffer with line (bottom
+ left pixel of, e.g. "m") starting at cursor.
+ Maximum width consumed is maxwidth, actual width
+ needed is returned */
+extern int fb_rgb332_putstr(char *str,int maxwidth);
+
+extern struct fb_rgb332 *fb_rgb332;
+
+#endif