From 301bb22fba9688c0add43eed2173dd2eafa8578d Mon Sep 17 00:00:00 2001 From: Buschel Date: Sun, 21 Mar 2010 19:02:09 +0000 Subject: [PATCH] Update battery discharge curve and current consumption for iRiver h10 5GB. Thanks to Danny Attar for measuring. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25279 a1c6a512-1295-4272-9138-f99709370657 --- docs/CREDITS | 1 + firmware/export/config/iriverh10_5gb.h | 5 +++++ firmware/target/arm/iriver/h10/powermgmt-h10.c | 24 ++++++++++++------------ 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/docs/CREDITS b/docs/CREDITS index 0bf49acb1..38a2eedc2 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -533,6 +533,7 @@ Kevin Schoedel Jens Theeß Alexey Nemtsev Pascal Below +Danny Attar The libmad team The wavpack team diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h index bfc9b8ac2..2d8124f97 100644 --- a/firmware/export/config/iriverh10_5gb.h +++ b/firmware/export/config/iriverh10_5gb.h @@ -113,6 +113,11 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define current usage levels */ +#define CURRENT_NORMAL 98 /* ~8.4h (820mAh) from bench with r25244 */ +#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ +#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ + #ifndef SIMULATOR /* Define this if you have a PortalPlayer PP5020 */ diff --git a/firmware/target/arm/iriver/h10/powermgmt-h10.c b/firmware/target/arm/iriver/h10/powermgmt-h10.c index eed8fbc5d..9970c292b 100644 --- a/firmware/target/arm/iriver/h10/powermgmt-h10.c +++ b/firmware/target/arm/iriver/h10/powermgmt-h10.c @@ -26,40 +26,40 @@ const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) 3733 -#elif defined IRIVER_H10_5GB - 3695 +#elif defined(IRIVER_H10_5GB) + 3700 #endif }; const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = { -#ifdef IRIVER_H10 - 3627 -#elif defined IRIVER_H10_5GB +#if defined(IRIVER_H10) 3627 +#elif defined(IRIVER_H10_5GB) + 3600 #endif }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) { 3733, 3772, 3821, 3840, 3869, 3917, 3985, 4034, 4072, 4140, 4198 } -#elif defined IRIVER_H10_5GB - { 3695, 3714, 3772, 3791, 3811, 3850, 3908, 3985, 4024, 4111, 4198 } +#elif defined(IRIVER_H10_5GB) + { 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280 } #endif }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ const unsigned short percent_to_volt_charge[11] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) 3956, 3995, 4024, 4043, 4063, 4082, 4111, 4140, 4179, 4218, 4266 -#elif defined IRIVER_H10_5GB +#elif defined(IRIVER_H10_5GB) /* TODO: Not yet calibrated */ - 3850, 3888, 3927, 3966, 4024, 4063, 4111, 4150, 4198, 4237, 4286 + 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280 #endif }; -- 2.11.4.GIT