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 | |
parent | 66149b454bfcff32ea6bb564b8d49fabc5f020d7 (diff) | |
download | rockbox-19fba5fb30efaed540478457fb52c0200a748e59.tar.gz rockbox-19fba5fb30efaed540478457fb52c0200a748e59.zip |
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')
6 files changed, 6 insertions, 32 deletions
diff --git a/firmware/target/arm/as3525/powermgmt-target.h b/firmware/target/arm/as3525/powermgmt-target.h index f2762f3e47..3b459fa695 100644 --- a/firmware/target/arm/as3525/powermgmt-target.h +++ b/firmware/target/arm/as3525/powermgmt-target.h @@ -100,10 +100,6 @@ #error "Charger settings not defined!" #endif -void powermgmt_init_target(void); -void charging_algorithm_step(void); -void charging_algorithm_close(void); - /* We want to be able to reset the averaging filter */ #define HAVE_RESET_BATTERY_FILTER diff --git a/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h b/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h index c881bed68c..a45d1b712f 100644 --- a/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h @@ -107,10 +107,6 @@ #define BATT_AVE_SAMPLES 128 #define ICHARGER_AVE_SAMPLES 32 -void powermgmt_init_target(void); -void charging_algorithm_step(void); -void charging_algorithm_close(void); - /* Provide filtered charge current */ int battery_charge_current(void); diff --git a/firmware/target/arm/philips/sa9200/powermgmt-target.h b/firmware/target/arm/philips/sa9200/powermgmt-target.h index 4400cda5d1..37ea310efe 100644 --- a/firmware/target/arm/philips/sa9200/powermgmt-target.h +++ b/firmware/target/arm/philips/sa9200/powermgmt-target.h @@ -36,10 +36,6 @@ */ #define ADC_BATTERY ADC_RTCSUP -void powermgmt_init_target(void); -void charging_algorithm_step(void); -void charging_algorithm_close(void); - /* We want to be able to reset the averaging filter */ #define HAVE_RESET_BATTERY_FILTER diff --git a/firmware/target/arm/sandisk/powermgmt-target.h b/firmware/target/arm/sandisk/powermgmt-target.h index aa6a0e0e3d..cb1ccf55c4 100644 --- a/firmware/target/arm/sandisk/powermgmt-target.h +++ b/firmware/target/arm/sandisk/powermgmt-target.h @@ -47,10 +47,6 @@ #define ADC_BATTERY ADC_RTCSUP #endif -void powermgmt_init_target(void); -void charging_algorithm_step(void); -void charging_algorithm_close(void); - /* We want to be able to reset the averaging filter */ #define HAVE_RESET_BATTERY_FILTER 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 */ |