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:
parent
f90727b864
commit
1c72ea3bdf
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue