summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-11-20 00:01:13 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-11-20 00:01:13 +0000
commit577e571958ab43afb9ffd2526811053731e8d7c1 (patch)
treec1501bd57b03e4153e42f28b79dab3d4bd3c779e /apps/debug_menu.c
parent091c5e37aefcc6cf1ab1f354a7aa0717293d9373 (diff)
downloadrockbox-577e571958ab43afb9ffd2526811053731e8d7c1.tar.gz
rockbox-577e571958ab43afb9ffd2526811053731e8d7c1.zip
Removed startup_io test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4045 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c56d4cc2c0..5f9c1a7bf9 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1357,30 +1357,6 @@ bool dbg_save_roms(void)
1357 return false; 1357 return false;
1358} 1358}
1359 1359
1360
1361/* test code, to be removed later */
1362extern union /* defined in main.c */
1363{
1364 unsigned char port8 [512];
1365 unsigned short port16[256];
1366 unsigned port32[128];
1367} startup_io;
1368
1369bool dbg_save_io(void) /* dump the initial I/O space to disk */
1370{
1371 int fd;
1372
1373 fd = creat("/startup_io.bin", O_WRONLY);
1374 if(fd >= 0)
1375 {
1376 write(fd, (void *)&startup_io, sizeof(startup_io));
1377 close(fd);
1378 }
1379
1380 return false;
1381}
1382/* end of test code */
1383
1384bool debug_menu(void) 1360bool debug_menu(void)
1385{ 1361{
1386 int m; 1362 int m;
@@ -1388,7 +1364,6 @@ bool debug_menu(void)
1388 1364
1389 struct menu_items items[] = { 1365 struct menu_items items[] = {
1390 { "Dump ROM contents", dbg_save_roms }, 1366 { "Dump ROM contents", dbg_save_roms },
1391 { "Dump startup I/O", dbg_save_io },
1392 { "View I/O ports", dbg_ports }, 1367 { "View I/O ports", dbg_ports },
1393#ifdef HAVE_LCD_BITMAP 1368#ifdef HAVE_LCD_BITMAP
1394#ifdef HAVE_RTC 1369#ifdef HAVE_RTC