From 1c72ea3bdfcae0d67f7bc1ae78244ca606c42361 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 3 Jul 2002 08:42:45 +0000 Subject: Added IDE power control to the debug screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1318 a1c6a512-1295-4272-9138-f99709370657 --- firmware/debug.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/debug.c') 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; } } -- cgit v1.2.3