diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-08-31 09:59:35 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-08-31 09:59:35 +0000 |
commit | 3d10a810ede3f8513c32177b9939442742ae9436 (patch) | |
tree | 30872bca52e95611c8dead37710bbe6cb59bc52a /firmware/target/arm/iriver/h10 | |
parent | 9bc2fa97d0034a3c25cf52c7a1f417a4c6378536 (diff) |
H10 changes: power_off() now actually powers off. Fix wrong bitwise operation when disabling sound. Fix filenames when building a bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10822 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10')
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 71eae2105e..6e7b65a803 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c @@ -89,11 +89,8 @@ bool ide_powered(void) void power_off(void) { - /* set_irq_level(HIGHEST_IRQ_LEVEL);*/ - #ifndef BOOTLOADER - /* We don't turn off the ipod, we put it in a deep sleep */ - /* pcf50605_standby_mode(); */ - while(1) - yield(); - #endif + /* Give things a second to settle before cutting power */ + sleep(HZ); + + GPIOF_OUTPUT_VAL &=~ 0x20; } |