forked from len0rd/rockbox
Build some more plugins for M:Robe most work, doom builds and runs if you use a hack - need to fix the user timer so that it works properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15403 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
574b1009a6
commit
38548c7118
17 changed files with 276 additions and 27 deletions
|
|
@ -648,6 +648,44 @@ static bool dbg_hw_info(void)
|
|||
lcd_update();
|
||||
|
||||
while (!(action_userabort(TIMEOUT_BLOCK)));
|
||||
#elif CONFIG_CPU == DM320
|
||||
int line = 0, button;
|
||||
int *address=0x0;
|
||||
bool done=false;
|
||||
char buf[100];
|
||||
|
||||
lcd_setmargins(0, 0);
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
lcd_clear_display();
|
||||
lcd_puts(0, line++, "[Hardware info]");
|
||||
|
||||
while(!done)
|
||||
{
|
||||
button = button_get(false);
|
||||
button&=~BUTTON_REPEAT;
|
||||
if (button == BUTTON_POWER)
|
||||
done=true;
|
||||
if(button==BUTTON_RC_PLAY)
|
||||
address+=0x01;
|
||||
else if (button==BUTTON_RC_DOWN)
|
||||
address-=0x01;
|
||||
else if (button==BUTTON_RC_FF)
|
||||
address+=0x800;
|
||||
else if (button==BUTTON_RC_REW)
|
||||
address-=0x800;
|
||||
{
|
||||
snprintf(buf, sizeof(buf), "current tick: %04x", (unsigned int)current_tick);
|
||||
lcd_puts(0, line++, buf);
|
||||
snprintf(buf, sizeof(buf), "Address: 0x%08x Data: 0x%08x", (unsigned int)address, *address);
|
||||
lcd_puts(0, line++, buf);
|
||||
snprintf(buf, sizeof(buf), "Address: 0x%08x Data: 0x%08x", (unsigned int)(address+1), *(address+1));
|
||||
lcd_puts(0, line++, buf);
|
||||
snprintf(buf, sizeof(buf), "Address: 0x%08x Data: 0x%08x", (unsigned int)(address+2), *(address+2));
|
||||
lcd_puts(0, line++, buf);
|
||||
line -= 4;
|
||||
}
|
||||
lcd_update();
|
||||
}
|
||||
|
||||
#endif /* CONFIG_CPU */
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue