diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 08:09:07 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 08:09:07 +0000 |
| commit | c9fca1e69c7db82d107120552bad4dff6ab3d877 (patch) | |
| tree | 9a2707a169b9912236632826856abc9019c38b9b /apps/debug_menu.c | |
| parent | 3be1ca028117344ac0967fbe9379793a891f36eb (diff) | |
| download | rockbox-c9fca1e69c7db82d107120552bad4dff6ab3d877.zip rockbox-c9fca1e69c7db82d107120552bad4dff6ab3d877.tar.gz rockbox-c9fca1e69c7db82d107120552bad4dff6ab3d877.tar.bz2 rockbox-c9fca1e69c7db82d107120552bad4dff6ab3d877.tar.xz | |
Show exact CPU version on PP5002 targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15427 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index aa4a397..301fca8 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -630,6 +630,11 @@ static bool dbg_hw_info(void) #elif CONFIG_CPU == PP5002 int line = 0; char buf[32]; + char pp_version[] = { (PP_VER4 >> 8) & 0xff, PP_VER4 & 0xff, + (PP_VER3 >> 8) & 0xff, PP_VER3 & 0xff, + (PP_VER2 >> 8) & 0xff, PP_VER2 & 0xff, + (PP_VER1 >> 8) & 0xff, PP_VER1 & 0xff, '\0' }; + lcd_setmargins(0, 0); lcd_setfont(FONT_SYSFIXED); @@ -642,6 +647,9 @@ static bool dbg_hw_info(void) lcd_puts(0, line++, buf); #endif + snprintf(buf, sizeof(buf), "PP version: %s", pp_version); + lcd_puts(0, line++, buf); + snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck()); lcd_puts(0, line++, buf); |