forked from len0rd/rockbox
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
This commit is contained in:
parent
ed75cc09f1
commit
8839f18cc8
5 changed files with 24 additions and 7 deletions
|
|
@ -88,6 +88,10 @@
|
||||||
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
||||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||||
|
|
||||||
|
#define CURRENT_NORMAL 145 /* usual current in mA */
|
||||||
|
#define CURRENT_RECORD 35 /* additional recording current */
|
||||||
|
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
||||||
|
|
||||||
/* Hardware controlled charging with monitoring */
|
/* Hardware controlled charging with monitoring */
|
||||||
#define CONFIG_CHARGING CHARGING_MONITOR
|
#define CONFIG_CHARGING CHARGING_MONITOR
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,9 @@
|
||||||
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
||||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||||
|
|
||||||
|
#define CURRENT_NORMAL 145 /* usual current in mA */
|
||||||
|
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
||||||
|
|
||||||
/* define this if the unit should not shut down on low battery. */
|
/* define this if the unit should not shut down on low battery. */
|
||||||
#define NO_LOW_BATTERY_SHUTDOWN
|
#define NO_LOW_BATTERY_SHUTDOWN
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,10 @@
|
||||||
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
||||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||||
|
|
||||||
|
#define CURRENT_NORMAL 145 /* usual current in mA */
|
||||||
|
#define CURRENT_RECORD 35 /* additional recording current */
|
||||||
|
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
||||||
|
|
||||||
/* define this if the unit should not shut down on low battery. */
|
/* define this if the unit should not shut down on low battery. */
|
||||||
#define NO_LOW_BATTERY_SHUTDOWN
|
#define NO_LOW_BATTERY_SHUTDOWN
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,10 @@
|
||||||
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
||||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||||
|
|
||||||
|
#define CURRENT_NORMAL 145 /* usual current in mA */
|
||||||
|
#define CURRENT_RECORD 35 /* additional recording current */
|
||||||
|
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
||||||
|
|
||||||
/* Hardware controlled charging with monitoring */
|
/* Hardware controlled charging with monitoring */
|
||||||
#define CONFIG_CHARGING CHARGING_MONITOR
|
#define CONFIG_CHARGING CHARGING_MONITOR
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,28 +76,30 @@ extern unsigned int power_thread_inputs;
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
||||||
/* Generic current values that are really rather meaningless - config header
|
/* Generic current values that are intentionally meaningless - config header
|
||||||
* should define proper numbers. */
|
* should define proper numbers. Use insane values here to remind people
|
||||||
|
* to define the correct values in the proper header*/
|
||||||
|
|
||||||
#ifndef CURRENT_NORMAL
|
#ifndef CURRENT_NORMAL
|
||||||
#define CURRENT_NORMAL 145 /* usual current in mA */
|
#define CURRENT_NORMAL 1 /* usual current in mA */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CURRENT_BACKLIGHT
|
#ifndef CURRENT_BACKLIGHT
|
||||||
#define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */
|
#define CURRENT_BACKLIGHT 1 /* additional current when backlight always on */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_RECORDING
|
#ifdef HAVE_RECORDING
|
||||||
#ifndef CURRENT_RECORD
|
#ifndef CURRENT_RECORD
|
||||||
#define CURRENT_RECORD 35 /* additional recording current */
|
#define CURRENT_RECORD 1 /* additional recording current */
|
||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_RECORDING */
|
#endif /* HAVE_RECORDING */
|
||||||
|
|
||||||
#ifndef CURRENT_USB
|
#ifndef CURRENT_USB
|
||||||
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
#define CURRENT_USB 1 /* usual current in mA in USB mode */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
#define CURRENT_REMOTE 8 /* additional current when remote connected */
|
#define CURRENT_REMOTE 1 /* additional current when remote connected */
|
||||||
#endif /* HAVE_REMOTE_LCD */
|
#endif /* HAVE_REMOTE_LCD */
|
||||||
|
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue