diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-05-15 21:21:52 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-05-15 21:21:52 +0000 |
commit | 7906ed34272e1781f94e3b863be71a6d7d5811cc (patch) | |
tree | acdcb84c8d4d63cf9195e5719594d6847d32a145 | |
parent | 95b52a0d002884a6aa8ed3b6eb2f733cb6db6d41 (diff) | |
download | rockbox-7906ed34272e1781f94e3b863be71a6d7d5811cc.tar.gz rockbox-7906ed34272e1781f94e3b863be71a6d7d5811cc.zip |
Make it possible to select the correct battery capacity on ipod video, default is the 30GB models 400mAh, discharge curve and runtime estimation is still no calibrated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13395 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/config-ipodvideo.h | 6 | ||||
-rw-r--r-- | firmware/export/powermgmt.h | 19 |
2 files changed, 13 insertions, 12 deletions
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index e10a7f9e55..b5318d755c 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -66,7 +66,7 @@ | |||
66 | /* We can fade the backlight by using PWM */ | 66 | /* We can fade the backlight by using PWM */ |
67 | #define HAVE_BACKLIGHT_PWM_FADING | 67 | #define HAVE_BACKLIGHT_PWM_FADING |
68 | 68 | ||
69 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ | 69 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */ |
70 | 70 | ||
71 | #ifndef SIMULATOR | 71 | #ifndef SIMULATOR |
72 | 72 | ||
@@ -80,8 +80,8 @@ | |||
80 | 80 | ||
81 | /* Type of mobile power */ | 81 | /* Type of mobile power */ |
82 | #define CONFIG_BATTERY BATT_LIPOL1300 | 82 | #define CONFIG_BATTERY BATT_LIPOL1300 |
83 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | 83 | #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ |
84 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | 84 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ |
85 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 85 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
86 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 86 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
87 | #define BATTERY_SCALE_FACTOR 5865 | 87 | #define BATTERY_SCALE_FACTOR 5865 |
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index fc7a0de171..b8e8b580d1 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -98,21 +98,22 @@ extern charger_input_state_type charger_input_state; | |||
98 | # define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */ | 98 | # define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */ |
99 | # define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */ | 99 | # define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */ |
100 | # define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */ | 100 | # define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */ |
101 | #else | ||
102 | # define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ | ||
103 | # define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ | ||
104 | #endif /* not IRIVER_H100_SERIES */ | ||
105 | #define CURRENT_USB 500 /* usual current in mA in USB mode */ | ||
106 | #ifdef IRIVER_H100_SERIES | ||
107 | # define CURRENT_RECORD 105 /* additional current while recording */ | 101 | # define CURRENT_RECORD 105 /* additional current while recording */ |
108 | #elif defined(IRIVER_H300_SERIES) | 102 | #elif defined(IRIVER_H300_SERIES) |
109 | # define CURRENT_RECORD 110 | 103 | # define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */ |
110 | #elif defined(HAVE_RECORDING) | 104 | # define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */ |
105 | # define CURRENT_RECORD 110 /* additional current while recording */ | ||
106 | #else /* Not iriver H1x0, H3x0, nor Archos Ondio */ | ||
107 | # define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ | ||
108 | # define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ | ||
109 | #if defined(HAVE_RECORDING) | ||
111 | # define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ | 110 | # define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ |
112 | #endif | 111 | #endif |
112 | #endif /* Not Archos Ondio */ | ||
113 | #define CURRENT_USB 500 /* usual current in mA in USB mode */ | ||
113 | #ifdef HAVE_REMOTE_LCD | 114 | #ifdef HAVE_REMOTE_LCD |
114 | # define CURRENT_REMOTE 8 /* add. current when H100-remote connected */ | 115 | # define CURRENT_REMOTE 8 /* add. current when H100-remote connected */ |
115 | #endif | 116 | #endif /* HAVE_MMC */ |
116 | 117 | ||
117 | # define CURRENT_MIN_CHG 70 /* minimum charge current */ | 118 | # define CURRENT_MIN_CHG 70 /* minimum charge current */ |
118 | # define MIN_CHG_V 8500 /* at 8.5v charger voltage get CURRENT_MIN_CHG */ | 119 | # define MIN_CHG_V 8500 /* at 8.5v charger voltage get CURRENT_MIN_CHG */ |