summaryrefslogtreecommitdiffstats
path: root/firmware/debug.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-03 08:42:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-03 08:42:45 +0000
commit1c72ea3bdfcae0d67f7bc1ae78244ca606c42361 (patch)
treefaf4d297d278178698154ea2bc89b7a772eee435 /firmware/debug.c
parentf90727b86457b4866748fee91cb516a76355fc63 (diff)
downloadrockbox-1c72ea3bdfcae0d67f7bc1ae78244ca606c42361.tar.gz
rockbox-1c72ea3bdfcae0d67f7bc1ae78244ca606c42361.tar.bz2
rockbox-1c72ea3bdfcae0d67f7bc1ae78244ca606c42361.zip
Added IDE power control to the debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1318 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.c')
-rw-r--r--firmware/debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/debug.c b/firmware/debug.c
index 76fa67cc7c..c64054b115 100644
--- a/firmware/debug.c
+++ b/firmware/debug.c
@@ -277,9 +277,16 @@ void dbg_ports(void)
PBDR ^= 0x20;
break;
+ case BUTTON_UP:
+ /* Toggle the IDE power */
+ PADR ^= 0x20;
+ break;
+
case BUTTON_OFF:
/* Disable the charger */
PBDR |= 0x20;
+ /* Enable the IDE power */
+ PADR |= 0x20;
return;
}
}