diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-25 19:28:01 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-25 19:28:01 +0000 |
commit | 297a256729cb31f97e77710dfbdb89f395abb24a (patch) | |
tree | 5c3f2e6fda2f3462c539c30881fd9bbb8e5cbc0f /firmware/drivers/power.c | |
parent | 1665811d33158ed11336437a22e4a745c1e35695 (diff) |
More sensible (but probably still not working) power off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2419 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 4a45041325..b61090ff26 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c @@ -20,6 +20,7 @@ #include <stdbool.h> #include "config.h" #include "adc.h" +#include "kernel.h" #include "power.h" #ifdef HAVE_CHARGE_CTRL @@ -66,6 +67,7 @@ void ide_power_enable(bool on) void power_off(void) { + set_irq_level(15); #ifdef ARCHOS_RECORDER PBDR &= ~PBDR_BTN_OFF; PBIOR |= PBDR_BTN_OFF; @@ -73,6 +75,7 @@ void power_off(void) PADR &= ~0x800; PAIOR |= 0x800; #endif + while(1); } #else |