From 7ff649a6a7c385140f38f9f4676a4677d3d9a07a Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Fri, 3 Feb 2012 17:20:00 +0100 Subject: firmware/apps: print application name on the display Now we're printing the application name on all apps that initialize the display (again). Signed-off-by: Steve Markgraf --- src/target/firmware/apps/compal_dsp_dump/main.c | 23 +++++++++++++++++++++++ src/target/firmware/apps/hello_world/main.c | 2 +- src/target/firmware/apps/layer1/main.c | 24 ++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/target/firmware/apps/compal_dsp_dump/main.c b/src/target/firmware/apps/compal_dsp_dump/main.c index 8debae73..f148d50d 100644 --- a/src/target/firmware/apps/compal_dsp_dump/main.c +++ b/src/target/firmware/apps/compal_dsp_dump/main.c @@ -37,6 +37,7 @@ #include #include #include +#include /* Main Program */ const char *hr = "======================================================================\n"; @@ -52,6 +53,28 @@ int main(void) dump_dev_id(); puts(hr); + fb_clear(); + + fb_setfg(FB_COLOR_BLACK); + fb_setbg(FB_COLOR_WHITE); + fb_setfont(FB_FONT_HELVB14); + + fb_gotoxy(2,20); + fb_putstr("DSP Dump",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 DSP content */ dsp_dump(); diff --git a/src/target/firmware/apps/hello_world/main.c b/src/target/firmware/apps/hello_world/main.c index 174d7e3f..cdf4dae0 100644 --- a/src/target/firmware/apps/hello_world/main.c +++ b/src/target/firmware/apps/hello_world/main.c @@ -90,7 +90,7 @@ int main(void) fb_clear(); - fb_setfg(FB_COLOR_GREEN); + fb_setfg(FB_COLOR_BLACK); fb_setbg(FB_COLOR_WHITE); fb_setfont(FB_FONT_HELVB14); diff --git a/src/target/firmware/apps/layer1/main.c b/src/target/firmware/apps/layer1/main.c index f58edd83..0513d624 100644 --- a/src/target/firmware/apps/layer1/main.c +++ b/src/target/firmware/apps/layer1/main.c @@ -48,6 +48,8 @@ #include #include +#include + const char *hr = "======================================================================\n"; /* MAIN program **************************************************************/ @@ -74,6 +76,28 @@ int main(void) calypso_clk_dump(); puts(hr); + fb_clear(); + + fb_setfg(FB_COLOR_BLACK); + fb_setbg(FB_COLOR_WHITE); + fb_setfont(FB_FONT_HELVB14); + + fb_gotoxy(2,20); + fb_putstr("Layer 1",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(); + /* initialize SIM */ calypso_sim_init(); -- cgit v1.2.3