From 7ade14776f25fae3121aed0d6291b089f4e00363 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 14 Jul 2007 14:46:52 +0000 Subject: Correction for ipod video and nano battery type. FS #7216 by Andree Buschmann git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13885 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/powermgmt.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'firmware/export/powermgmt.h') diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index d42cc30154..77764b5a31 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -103,7 +103,19 @@ extern charger_input_state_type charger_input_state; # define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */ # define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */ # define CURRENT_RECORD 110 /* additional current while recording */ -#else /* Not iriver H1x0, H3x0, nor Archos Ondio */ +#elif defined(IPOD_ARCH) && (MODEL_NUMBER==4) /* iPOD Nano */ +# define CURRENT_NORMAL 35 /* 8.5-9.0h playback out of 300mAh battery from IpodRuntime */ +# define CURRENT_BACKLIGHT 20 /* FIXME: estimation took over from iPOD Video */ +#if defined(HAVE_RECORDING) +# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ +#endif +#elif defined(IPOD_ARCH) && (MODEL_NUMBER==5) /* iPOD Video */ +# define CURRENT_NORMAL 50 /* 8h out of 400mAh battery (30GB) or 11h out of 600mAh (60GB) from IpodRuntime */ +# define CURRENT_BACKLIGHT 20 /* estimation calculated from IpodRuntime measurement */ +#if defined(HAVE_RECORDING) +# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ +#endif +#else /* Not iriver H1x0, H3x0, nor Archos Ondio, nor iPODVideo */ # define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ # define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ #if defined(HAVE_RECORDING) -- cgit v1.2.3