summaryrefslogtreecommitdiffstats
path: root/firmware/target/sh
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh')
-rw-r--r--firmware/target/sh/archos/recorder/powermgmt-recorder.c8
-rw-r--r--firmware/target/sh/archos/recorder/powermgmt-target.h14
2 files changed, 6 insertions, 16 deletions
diff --git a/firmware/target/sh/archos/recorder/powermgmt-recorder.c b/firmware/target/sh/archos/recorder/powermgmt-recorder.c
index 0bce1585cd..1e78b8d155 100644
--- a/firmware/target/sh/archos/recorder/powermgmt-recorder.c
+++ b/firmware/target/sh/archos/recorder/powermgmt-recorder.c
@@ -65,6 +65,10 @@ int _battery_voltage(void)
return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10;
}
+void powermgmt_init_target(void)
+{
+}
+
/** Charger control **/
#ifdef CHARGING_DEBUG_FILE
#include "file.h"
@@ -483,12 +487,12 @@ void charging_algorithm_step(void)
charger_enable(trickle_sec > 0);
}
-#ifdef CHARGING_DEBUG_FILE
void charging_algorithm_close(void)
{
+#ifdef CHARGING_DEBUG_FILE
debug_file_close();
-}
#endif /* CHARGING_DEBUG_FILE */
+}
/* Returns true if the unit is charging the batteries. */
bool charging_state(void)
diff --git a/firmware/target/sh/archos/recorder/powermgmt-target.h b/firmware/target/sh/archos/recorder/powermgmt-target.h
index 7792c05185..6b68d05bd4 100644
--- a/firmware/target/sh/archos/recorder/powermgmt-target.h
+++ b/firmware/target/sh/archos/recorder/powermgmt-target.h
@@ -86,18 +86,4 @@ bool charger_enabled(void);
/* Battery filter lengths in samples */
#define BATT_AVE_SAMPLES 32
-/* No init to do */
-#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
-static inline void powermgmt_init_target(void) {}
-#endif
-void charging_algorithm_step(void);
-
-#ifdef CHARGING_DEBUG_FILE
-/* Need to flush and close debug file */
-void charging_algorithm_close(void);
-#else
-/* No poweroff operation to do */
-static inline void charging_algorithm_close(void) {}
-#endif
-
#endif /* POWERMGMT_TARGET_H */