summaryrefslogtreecommitdiffstats
path: root/firmware/export/power.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-24 16:58:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-24 16:58:41 +0000
commit3157e1395674a930c74e2ef4cc4ce78dffea8569 (patch)
tree5b2a9befc3b051caf0806995ebd32a5ab3bcf5ff /firmware/export/power.h
parent0f9729739f2fd90759c1caeca86e487c36f98834 (diff)
downloadrockbox-3157e1395674a930c74e2ef4cc4ce78dffea8569.tar.gz
rockbox-3157e1395674a930c74e2ef4cc4ce78dffea8569.tar.bz2
rockbox-3157e1395674a930c74e2ef4cc4ce78dffea8569.zip
Simplify powermgmt thread loops so it calls functions turn (no more power_thread_sleep). Do other target-friendly simplifications, generic battery switch handling and split sim-specific code. Whoever can, please verify charging on the Archos Recorder (due to change in the charger duty cycle code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/power.h')
-rw-r--r--firmware/export/power.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/export/power.h b/firmware/export/power.h
index 747887921d..edf43f8cc8 100644
--- a/firmware/export/power.h
+++ b/firmware/export/power.h
@@ -21,11 +21,6 @@
#ifndef _POWER_H_
#define _POWER_H_
-#if CONFIG_CHARGING == CHARGING_CONTROL
-extern bool charger_enabled;
-void charger_enable(bool on);
-#endif
-
#if CONFIG_CHARGING
enum power_input_flags {
/* No external power source? Default. */
@@ -82,9 +77,9 @@ bool power_input_present(void);
void power_off(void);
void ide_power_enable(bool on);
-# if CONFIG_CHARGING == CHARGING_MONITOR
+#if CONFIG_CHARGING >= CHARGING_MONITOR
bool charging_state(void);
-# endif
+#endif
#ifndef SIMULATOR
@@ -102,4 +97,4 @@ bool spdif_powered(void);
bool tuner_power(bool status);
#endif
-#endif
+#endif /* _POWER_H_ */