diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-07 22:32:52 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-07 22:32:52 +0000 |
| commit | 19fba5fb30efaed540478457fb52c0200a748e59 (patch) | |
| tree | a303f65341b3f0dd16f4f716d8875861e4666f83 /firmware/target/sh/archos | |
| parent | 66149b454bfcff32ea6bb564b8d49fabc5f020d7 (diff) | |
| download | rockbox-19fba5fb30efaed540478457fb52c0200a748e59.zip rockbox-19fba5fb30efaed540478457fb52c0200a748e59.tar.gz rockbox-19fba5fb30efaed540478457fb52c0200a748e59.tar.bz2 rockbox-19fba5fb30efaed540478457fb52c0200a748e59.tar.xz | |
powermgmt-target.h: move prototypes to powermgmt.h
Implement empty stubs if needed instead of empty static inline
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31617 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/sh/archos')
| -rw-r--r-- | firmware/target/sh/archos/recorder/powermgmt-recorder.c | 8 | ||||
| -rw-r--r-- | firmware/target/sh/archos/recorder/powermgmt-target.h | 14 |
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 0bce158..1e78b8d 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 7792c05..6b68d05 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 */ |