diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-03 08:42:45 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-03 08:42:45 +0000 |
commit | 1c72ea3bdfcae0d67f7bc1ae78244ca606c42361 (patch) | |
tree | faf4d297d278178698154ea2bc89b7a772eee435 /firmware/debug.c | |
parent | f90727b86457b4866748fee91cb516a76355fc63 (diff) | |
download | rockbox-1c72ea3bdfcae0d67f7bc1ae78244ca606c42361.tar.gz 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.c | 7 |
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) | |||
277 | PBDR ^= 0x20; | 277 | PBDR ^= 0x20; |
278 | break; | 278 | break; |
279 | 279 | ||
280 | case BUTTON_UP: | ||
281 | /* Toggle the IDE power */ | ||
282 | PADR ^= 0x20; | ||
283 | break; | ||
284 | |||
280 | case BUTTON_OFF: | 285 | case BUTTON_OFF: |
281 | /* Disable the charger */ | 286 | /* Disable the charger */ |
282 | PBDR |= 0x20; | 287 | PBDR |= 0x20; |
288 | /* Enable the IDE power */ | ||
289 | PADR |= 0x20; | ||
283 | return; | 290 | return; |
284 | } | 291 | } |
285 | } | 292 | } |