summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index e03681082c..663a27862c 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -84,10 +84,16 @@ extern int trickle_sec; /* trickle charge: How many seconds per minute
84extern int charge_state; /* tells what the charger is doing (for info display): 0: decharging/charger off, 1: charge, 2: top-off, 3: trickle */ 84extern int charge_state; /* tells what the charger is doing (for info display): 0: decharging/charger off, 1: charge, 2: top-off, 3: trickle */
85#endif 85#endif
86 86
87#define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ 87#ifdef HAVE_MMC /* Values for Ondio */
88#define CURRENT_USB 500 /* usual current in mA in USB mode */ 88#define CURRENT_NORMAL 95 /* average, nearly proportional to 1/U */
89#define CURRENT_BACKLIGHT 30 /* additional current when backlight is always on */ 89#define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */
90#define CURRENT_CHARGING 300 /* charging current */ 90#define CURRENT_BACKLIGHT 0 /* no backlight */
91#else /* Values for HD based jukeboxes */
92#define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */
93#define CURRENT_USB 500 /* usual current in mA in USB mode */
94#define CURRENT_BACKLIGHT 30 /* additional current when backlight is always on */
95#define CURRENT_CHARGING 300 /* charging current */
96#endif
91 97
92extern unsigned short power_history[POWER_HISTORY_LEN]; 98extern unsigned short power_history[POWER_HISTORY_LEN];
93 99