summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/apps
diff options
context:
space:
mode:
authorChristian Vogel <vogelchr@vogel.cx>2010-10-14 21:00:16 +0200
committerHarald Welte <laforge@gnumonks.org>2012-02-03 23:59:35 +0100
commitde8bb97ed51af386c35c659e94c9f08248ed65a4 (patch)
tree618910e65607fdc7c934325ef88dbe8b86a8ca66 /src/target/firmware/apps
parentdf4218c8fd6d4a20c8840fd6246e41c58172bc09 (diff)
Calypso FB: Makefile, "dummy" driver, Hello World
Diffstat (limited to 'src/target/firmware/apps')
-rw-r--r--src/target/firmware/apps/hello_world/main.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/target/firmware/apps/hello_world/main.c b/src/target/firmware/apps/hello_world/main.c
index 1f49145e..174d7e3f 100644
--- a/src/target/firmware/apps/hello_world/main.c
+++ b/src/target/firmware/apps/hello_world/main.c
@@ -40,6 +40,7 @@
#include <calypso/misc.h>
#include <comm/sercomm.h>
#include <comm/timer.h>
+#include <fb/framebuffer.h>
/* Main Program */
const char *hr = "======================================================================\n";
@@ -87,6 +88,30 @@ int main(void)
calypso_clk_dump();
puts(hr);
+ fb_clear();
+
+ fb_setfg(FB_COLOR_GREEN);
+ fb_setbg(FB_COLOR_WHITE);
+ fb_setfont(FB_FONT_HELVB14);
+
+ fb_gotoxy(2,20);
+ fb_putstr("Hello World!",framebuffer->width-4);
+
+ fb_setfg(FB_COLOR_RED);
+ fb_setbg(FB_COLOR_BLUE);
+
+ fb_gotoxy(2,25);
+ fb_boxto(framebuffer->width-3,38);
+
+ fb_setfg(FB_COLOR_WHITE);
+ fb_setfont(FB_FONT_HELVR08);
+ fb_gotoxy(8,33);
+ fb_putstr("osmocom-bb",framebuffer->width-4);
+
+ fb_flush();
+
+
+
/* Dump all memory */
//dump_mem();
#if 0