From 3157e1395674a930c74e2ef4cc4ce78dffea8569 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 24 Dec 2008 16:58:41 +0000 Subject: 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 --- firmware/export/power.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'firmware/export/power.h') 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_ */ -- cgit