diff options
author | Christi Scarborough <christi@coraline.org> | 2005-02-06 09:57:57 +0000 |
---|---|---|
committer | Christi Scarborough <christi@coraline.org> | 2005-02-06 09:57:57 +0000 |
commit | 247fe6d698f244123ecde9d9971e74ee99504e9e (patch) | |
tree | afd5c663351558446b1610388b9100987da13775 /apps/misc.c | |
parent | 05605866a6b9c6b01f496e580b906ababa803fe7 (diff) | |
download | rockbox-247fe6d698f244123ecde9d9971e74ee99504e9e.tar.gz rockbox-247fe6d698f244123ecde9d9971e74ee99504e9e.zip |
clean shutdown for idle timer and sleep timer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5814 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/misc.c b/apps/misc.c index 9e7e3948c8..67fe2688b4 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "ata.h" | 35 | #include "ata.h" |
36 | #include "kernel.h" | 36 | #include "kernel.h" |
37 | #include "power.h" | 37 | #include "power.h" |
38 | #include "powermgmt.h" | ||
38 | #include "backlight.h" | 39 | #include "backlight.h" |
39 | #ifdef HAVE_MMC | 40 | #ifdef HAVE_MMC |
40 | #include "ata_mmc.h" | 41 | #include "ata_mmc.h" |
@@ -232,19 +233,7 @@ bool clean_shutdown(void) | |||
232 | { | 233 | { |
233 | lcd_clear_display(); | 234 | lcd_clear_display(); |
234 | splash(0, true, str(LANG_SHUTTINGDOWN)); | 235 | splash(0, true, str(LANG_SHUTTINGDOWN)); |
235 | mpeg_stop(); | 236 | shutdown_hw(); |
236 | ata_flush(); | ||
237 | ata_spindown(1); | ||
238 | while(ata_disk_is_active()) | ||
239 | sleep(HZ/10); | ||
240 | |||
241 | mp3_shutdown(); | ||
242 | #if CONFIG_KEYPAD == ONDIO_PAD | ||
243 | backlight_off(); | ||
244 | sleep(1); | ||
245 | lcd_set_contrast(0); | ||
246 | #endif | ||
247 | power_off(); | ||
248 | } | 237 | } |
249 | #endif | 238 | #endif |
250 | return false; | 239 | return false; |