summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-06-29 18:32:43 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-06-29 18:32:43 +0000
commit8839f18cc8234857e1ec3e77cdfa1f8daec311d9 (patch)
treefcbe185c64b96fe6c9c476a0eb750a8d1492c793
parented75cc09f1243cff5eec0ea99f3c0805b8834c36 (diff)
downloadrockbox-8839f18cc8234857e1ec3e77cdfa1f8daec311d9.tar.gz
rockbox-8839f18cc8234857e1ec3e77cdfa1f8daec311d9.zip
Move Archos battery runtime estimation defines into config files instead of powermgmt.h. Replace old default values (which were actually the Archos Player currents) with a new default (1mA). This should give nonsense runtime estimates (instead of semi-reasonable but completely wrong estimates) on all players that do not have a battery current defined. Hopefully this will remind people that they should define the battery current when they start a new port.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21565 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-fmrecorder.h4
-rw-r--r--firmware/export/config-player.h3
-rw-r--r--firmware/export/config-recorder.h4
-rw-r--r--firmware/export/config-recorderv2.h4
-rw-r--r--firmware/export/powermgmt.h16
5 files changed, 24 insertions, 7 deletions
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index bc859df67a..acc1c74dcf 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -88,6 +88,10 @@
88#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 88#define BATTERY_CAPACITY_INC 50 /* capacity increment */
89#define BATTERY_TYPES_COUNT 1 /* only one type */ 89#define BATTERY_TYPES_COUNT 1 /* only one type */
90 90
91#define CURRENT_NORMAL 145 /* usual current in mA */
92#define CURRENT_RECORD 35 /* additional recording current */
93#define CURRENT_USB 500 /* usual current in mA in USB mode */
94
91/* Hardware controlled charging with monitoring */ 95/* Hardware controlled charging with monitoring */
92#define CONFIG_CHARGING CHARGING_MONITOR 96#define CONFIG_CHARGING CHARGING_MONITOR
93 97
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index 9d4696797b..5f6cf17fbe 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -49,6 +49,9 @@
49#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 49#define BATTERY_CAPACITY_INC 50 /* capacity increment */
50#define BATTERY_TYPES_COUNT 1 /* only one type */ 50#define BATTERY_TYPES_COUNT 1 /* only one type */
51 51
52#define CURRENT_NORMAL 145 /* usual current in mA */
53#define CURRENT_USB 500 /* usual current in mA in USB mode */
54
52/* define this if the unit should not shut down on low battery. */ 55/* define this if the unit should not shut down on low battery. */
53#define NO_LOW_BATTERY_SHUTDOWN 56#define NO_LOW_BATTERY_SHUTDOWN
54 57
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index 44006b4196..37c2222985 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -77,6 +77,10 @@
77#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 77#define BATTERY_CAPACITY_INC 50 /* capacity increment */
78#define BATTERY_TYPES_COUNT 1 /* only one type */ 78#define BATTERY_TYPES_COUNT 1 /* only one type */
79 79
80#define CURRENT_NORMAL 145 /* usual current in mA */
81#define CURRENT_RECORD 35 /* additional recording current */
82#define CURRENT_USB 500 /* usual current in mA in USB mode */
83
80/* define this if the unit should not shut down on low battery. */ 84/* define this if the unit should not shut down on low battery. */
81#define NO_LOW_BATTERY_SHUTDOWN 85#define NO_LOW_BATTERY_SHUTDOWN
82 86
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index 8c2bc6863f..5ca9459750 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -83,6 +83,10 @@
83#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 83#define BATTERY_CAPACITY_INC 50 /* capacity increment */
84#define BATTERY_TYPES_COUNT 1 /* only one type */ 84#define BATTERY_TYPES_COUNT 1 /* only one type */
85 85
86#define CURRENT_NORMAL 145 /* usual current in mA */
87#define CURRENT_RECORD 35 /* additional recording current */
88#define CURRENT_USB 500 /* usual current in mA in USB mode */
89
86/* Hardware controlled charging with monitoring */ 90/* Hardware controlled charging with monitoring */
87#define CONFIG_CHARGING CHARGING_MONITOR 91#define CONFIG_CHARGING CHARGING_MONITOR
88 92
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index 39e2e6eab9..e691e1b10b 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -76,28 +76,30 @@ extern unsigned int power_thread_inputs;
76 76
77#ifndef SIMULATOR 77#ifndef SIMULATOR
78 78
79/* Generic current values that are really rather meaningless - config header 79/* Generic current values that are intentionally meaningless - config header
80 * should define proper numbers. */ 80 * should define proper numbers. Use insane values here to remind people
81 * to define the correct values in the proper header*/
82
81#ifndef CURRENT_NORMAL 83#ifndef CURRENT_NORMAL
82#define CURRENT_NORMAL 145 /* usual current in mA */ 84#define CURRENT_NORMAL 1 /* usual current in mA */
83#endif 85#endif
84 86
85#ifndef CURRENT_BACKLIGHT 87#ifndef CURRENT_BACKLIGHT
86#define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ 88#define CURRENT_BACKLIGHT 1 /* additional current when backlight always on */
87#endif 89#endif
88 90
89#ifdef HAVE_RECORDING 91#ifdef HAVE_RECORDING
90#ifndef CURRENT_RECORD 92#ifndef CURRENT_RECORD
91#define CURRENT_RECORD 35 /* additional recording current */ 93#define CURRENT_RECORD 1 /* additional recording current */
92#endif 94#endif
93#endif /* HAVE_RECORDING */ 95#endif /* HAVE_RECORDING */
94 96
95#ifndef CURRENT_USB 97#ifndef CURRENT_USB
96#define CURRENT_USB 500 /* usual current in mA in USB mode */ 98#define CURRENT_USB 1 /* usual current in mA in USB mode */
97#endif 99#endif
98 100
99#ifdef HAVE_REMOTE_LCD 101#ifdef HAVE_REMOTE_LCD
100#define CURRENT_REMOTE 8 /* additional current when remote connected */ 102#define CURRENT_REMOTE 1 /* additional current when remote connected */
101#endif /* HAVE_REMOTE_LCD */ 103#endif /* HAVE_REMOTE_LCD */
102 104
103#if CONFIG_CHARGING 105#if CONFIG_CHARGING