diff options
| author | Rob Purchase <shotofadds@rockbox.org> | 2009-10-29 20:12:28 +0000 |
|---|---|---|
| committer | Rob Purchase <shotofadds@rockbox.org> | 2009-10-29 20:12:28 +0000 |
| commit | ff7931ebd43c829330c5985ab1d89e6d5cb5b595 (patch) | |
| tree | 615765f1df0704b6d4e682f9f13a20d23261aac9 /apps | |
| parent | aca1d8b50b24d2f4e655edae48d7f9e0205b2ab7 (diff) | |
| download | rockbox-ff7931ebd43c829330c5985ab1d89e6d5cb5b595.zip rockbox-ff7931ebd43c829330c5985ab1d89e6d5cb5b595.tar.gz rockbox-ff7931ebd43c829330c5985ab1d89e6d5cb5b595.tar.bz2 rockbox-ff7931ebd43c829330c5985ab1d89e6d5cb5b595.tar.xz | |
Implement dbg_save_roms for TCC780x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23408 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/debug_menu.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index a0b285a..a9c4435 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -118,8 +118,8 @@ #include "pmu-target.h" #endif -#ifdef HAVE_USBSTACK -#include "usb_core.h" +#ifdef HAVE_USBSTACK +#include "usb_core.h" #endif /*---------------------------------------------------*/ @@ -1130,8 +1130,8 @@ bool dbg_ports(void) #if defined(IPOD_ACCESSORY_PROTOCOL) extern unsigned char serbuf[]; lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x", - serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5], - serbuf[6], serbuf[7]); + serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5], + serbuf[6], serbuf[7]); #endif #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) @@ -2207,6 +2207,20 @@ static bool dbg_save_roms(void) return false; } +#elif defined(CPU_TCC780X) +static bool dbg_save_roms(void) +{ + int fd; + + fd = creat("/eeprom_E0000000-E0001FFF.bin"); + if (fd >= 0) + { + write(fd, (void*)0xe0000000, 0x2000); + close(fd); + } + + return false; +} #endif /* CPU */ #ifndef SIMULATOR @@ -2536,7 +2550,7 @@ struct the_menu_item { static const struct the_menu_item menuitems[] = { #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \ - CONFIG_CPU == IMX31L + CONFIG_CPU == IMX31L || defined(CPU_TCC780X) { "Dump ROM contents", dbg_save_roms }, #endif #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ |