diff options
author | Steve Markgraf <steve@steve-m.de> | 2012-02-03 17:20:00 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-02-03 23:59:36 +0100 |
commit | 7ff649a6a7c385140f38f9f4676a4677d3d9a07a (patch) | |
tree | a7e7998891ff2de3c4dbf190f27185eeef51d9f1 /src/target/firmware | |
parent | d37d04dfdcd029f0721e8beddb2686d5316f1e5c (diff) |
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 <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware')
-rw-r--r-- | src/target/firmware/apps/compal_dsp_dump/main.c | 23 | ||||
-rw-r--r-- | src/target/firmware/apps/hello_world/main.c | 2 | ||||
-rw-r--r-- | src/target/firmware/apps/layer1/main.c | 24 |
3 files changed, 48 insertions, 1 deletions
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 <calypso/irq.h> #include <calypso/misc.h> #include <comm/timer.h> +#include <fb/framebuffer.h> /* 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 <layer1/async.h> #include <layer1/tpu_window.h> +#include <fb/framebuffer.h> + 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(); |