diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-02-28 21:55:11 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-02-28 21:55:11 +0000 |
commit | 8fd6d658a1caeddc0a84dd69ffe45739bd466e74 (patch) | |
tree | 91f79d4d40d898a303998710a18ae62d8b8c7082 /firmware/powermgmt.c | |
parent | ab66955664f8987d064247dc6d585b5618745d29 (diff) | |
download | rockbox-8fd6d658a1caeddc0a84dd69ffe45739bd466e74.tar.gz rockbox-8fd6d658a1caeddc0a84dd69ffe45739bd466e74.zip |
Add wake on alarm support for Ipods. Rename HAVE_ALARM_MOD to HAVE_ALARM_RTC since it's not always a mod. Make Ipod PCF driver keep other flags in OOCC1 that have been set instead of overwriting them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 1a1d576e67..c2f9ca0bca 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -727,7 +727,7 @@ static int runcurrent(void) | |||
727 | 727 | ||
728 | 728 | ||
729 | /* Check to see whether or not we've received an alarm in the last second */ | 729 | /* Check to see whether or not we've received an alarm in the last second */ |
730 | #ifdef HAVE_ALARM_MOD | 730 | #ifdef HAVE_RTC_ALARM |
731 | static void power_thread_rtc_process(void) | 731 | static void power_thread_rtc_process(void) |
732 | { | 732 | { |
733 | if (rtc_check_alarm_flag()) { | 733 | if (rtc_check_alarm_flag()) { |
@@ -823,7 +823,7 @@ static void power_thread_sleep(int ticks) | |||
823 | power_off(); | 823 | power_off(); |
824 | } | 824 | } |
825 | 825 | ||
826 | #ifdef HAVE_ALARM_MOD | 826 | #ifdef HAVE_RTC_ALARM |
827 | power_thread_rtc_process(); | 827 | power_thread_rtc_process(); |
828 | #endif | 828 | #endif |
829 | 829 | ||