Update of /cvsroot/rockbox/apps
In directory sc8-pr-cvs1:/tmp/cvs-serv26392
Modified Files:
debug_menu.c
Log Message:
Flash info now also for Player
Index: debug_menu.c
===================================================================
RCS file: /cvsroot/rockbox/apps/debug_menu.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- debug_menu.c 17 May 2003 21:24:13 -0000 1.46
+++ debug_menu.c 20 May 2003 21:30:53 -0000 1.47
@@ -298,12 +298,19 @@
int usb_polarity;
int bitmask = *(unsigned short*)0x20000fc;
int rom_version = *(unsigned short*)0x20000fe;
+ unsigned manu, id; /* flash IDs */
+ bool got_id; /* flag if we managed to get the flash IDs */
if(PADR & 0x400)
usb_polarity = 0; /* Negative */
else
usb_polarity = 1; /* Positive */
+ /* get flash ROM type */
+ got_id = dbg_flash_id(&manu, &id, 0x5555, 0x2AAA); /* try SST, Atmel,
NexFlash */
+ if (!got_id)
+ got_id = dbg_flash_id(&manu, &id, 0x555, 0x2AA); /* try AMD, Macronix
*/
+
lcd_clear_display();
lcd_puts(0, 0, "[HW Info]");
@@ -325,6 +332,12 @@
case 3:
snprintf(buf, 32, "Mask: %04x", bitmask);
break;
+ case 4:
+ if (got_id)
+ snprintf(buf, 32, "Flash:%02x,%02x", manu, id);
+ else
+ snprintf(buf, 32, "Flash:??,??"); /* unknown, sorry */
+ break;
}
lcd_puts(0, 1, buf);
@@ -340,12 +353,12 @@
case BUTTON_LEFT:
currval--;
if(currval < 0)
- currval = 3;
+ currval = 4;
break;
case BUTTON_RIGHT:
currval++;
- if(currval > 3)
+ if(currval > 4)
currval = 0;
break;
}
|