diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2009-06-29 18:32:43 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-06-29 18:32:43 +0000 |
commit | 8839f18cc8234857e1ec3e77cdfa1f8daec311d9 (patch) | |
tree | fcbe185c64b96fe6c9c476a0eb750a8d1492c793 /firmware/export/powermgmt.h | |
parent | ed75cc09f1243cff5eec0ea99f3c0805b8834c36 (diff) | |
download | rockbox-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
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r-- | firmware/export/powermgmt.h | 16 |
1 files changed, 9 insertions, 7 deletions
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 |