powermgmt.h: include config.h

AMS*: define CURRENT_MAX_CHG to give more correct estimation of recharge time
The amount of current each target draws from the charger is defined in
powermgmt-target.h

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27994 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-09-03 07:03:07 +00:00
parent e93ba5a724
commit bf0e907257
8 changed files with 21 additions and 0 deletions

View file

@ -154,6 +154,9 @@
#define CURRENT_BACKLIGHT 25
#define CURRENT_RECORD CURRENT_NORMAL
/* maximum charging current */
#define CURRENT_MAX_CHG 200
/* The start address index for ROM builds */
#define ROM_START 0x00000000

View file

@ -158,6 +158,9 @@
#define CURRENT_BACKLIGHT 13
#define CURRENT_RECORD CURRENT_NORMAL
/* maximum charging current */
#define CURRENT_MAX_CHG 150
/* Define this to the CPU frequency */
#define CPU_FREQ 248000000

View file

@ -165,6 +165,8 @@
#define CURRENT_BACKLIGHT 15
#define CURRENT_RECORD CURRENT_NORMAL /* TODO */
/* maximum charging current */
#define CURRENT_MAX_CHG 150
/* Define this to the CPU frequency */
#define CPU_FREQ 240000000

View file

@ -161,6 +161,9 @@
#define CURRENT_BACKLIGHT 15
#define CURRENT_RECORD 11
/* maximum charging current */
#define CURRENT_MAX_CHG 150
/* Define this to the CPU frequency */
#define CPU_FREQ 240000000

View file

@ -162,6 +162,9 @@
#define CURRENT_BACKLIGHT 30
#define CURRENT_RECORD CURRENT_NORMAL
/* maximum charging current */
#define CURRENT_MAX_CHG 300
/* The start address index for ROM builds */
#define ROM_START 0x00000000

View file

@ -166,6 +166,9 @@
#define CURRENT_BACKLIGHT 30
#define CURRENT_RECORD CURRENT_NORMAL
/* maximum charging current */
#define CURRENT_MAX_CHG 200
/* Define this to the CPU frequency */
#define CPU_FREQ 248000000

View file

@ -168,6 +168,9 @@
#define CURRENT_BACKLIGHT 30
#define CURRENT_RECORD CURRENT_NORMAL
/* maximum charging current */
#define CURRENT_MAX_CHG 200
/* Define this to the CPU frequency */
#define CPU_FREQ 240000000

View file

@ -22,6 +22,7 @@
#define _POWERMGMT_H_
#include <stdbool.h>
#include "config.h"
#define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */