summaryrefslogtreecommitdiff
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.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 @@
21#ifndef _POWER_H_ 21#ifndef _POWER_H_
22#define _POWER_H_ 22#define _POWER_H_
23 23
24#if CONFIG_CHARGING == CHARGING_CONTROL
25extern bool charger_enabled;
26void charger_enable(bool on);
27#endif
28
29#if CONFIG_CHARGING 24#if CONFIG_CHARGING
30enum power_input_flags { 25enum power_input_flags {
31 /* No external power source? Default. */ 26 /* No external power source? Default. */
@@ -82,9 +77,9 @@ bool power_input_present(void);
82void power_off(void); 77void power_off(void);
83void ide_power_enable(bool on); 78void ide_power_enable(bool on);
84 79
85# if CONFIG_CHARGING == CHARGING_MONITOR 80#if CONFIG_CHARGING >= CHARGING_MONITOR
86bool charging_state(void); 81bool charging_state(void);
87# endif 82#endif
88 83
89#ifndef SIMULATOR 84#ifndef SIMULATOR
90 85
@@ -102,4 +97,4 @@ bool spdif_powered(void);
102bool tuner_power(bool status); 97bool tuner_power(bool status);
103#endif 98#endif
104 99
105#endif 100#endif /* _POWER_H_ */