summaryrefslogtreecommitdiff
path: root/firmware/debug.c
diff options
context:
space:
mode:
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 76fa67c..c64054b 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;
}
}