Added IDE power control to the debug screen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1318 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-03 08:42:45 +00:00
parent f90727b864
commit 1c72ea3bdf

View file

@ -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;
}
}