diff options
-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(); |