diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-03 07:03:07 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-03 07:03:07 +0000 |
| commit | bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0 (patch) | |
| tree | a7fa69cb4ab98af2b67a0192dc8b42c95fdc03e8 | |
| parent | e93ba5a7241407b32e91563b7ef5eaafd0ea3338 (diff) | |
| download | rockbox-bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0.zip rockbox-bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0.tar.gz rockbox-bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0.tar.bz2 rockbox-bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0.tar.xz | |
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
| -rw-r--r-- | firmware/export/config/sansac200v2.h | 3 | ||||
| -rw-r--r-- | firmware/export/config/sansaclip.h | 3 | ||||
| -rw-r--r-- | firmware/export/config/sansaclipplus.h | 2 | ||||
| -rw-r--r-- | firmware/export/config/sansaclipv2.h | 3 | ||||
| -rw-r--r-- | firmware/export/config/sansae200v2.h | 3 | ||||
| -rw-r--r-- | firmware/export/config/sansafuze.h | 3 | ||||
| -rw-r--r-- | firmware/export/config/sansafuzev2.h | 3 | ||||
| -rw-r--r-- | firmware/export/powermgmt.h | 1 |
8 files changed, 21 insertions, 0 deletions
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h index aa9ccbe..a87d154 100644 --- a/firmware/export/config/sansac200v2.h +++ b/firmware/export/config/sansac200v2.h @@ -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 diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h index 3ef6e26..d43fa89 100644 --- a/firmware/export/config/sansaclip.h +++ b/firmware/export/config/sansaclip.h @@ -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 diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h index 8d6ffac..8a0a040 100644 --- a/firmware/export/config/sansaclipplus.h +++ b/firmware/export/config/sansaclipplus.h @@ -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 diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h index ad960c3..a39fe3e 100644 --- a/firmware/export/config/sansaclipv2.h +++ b/firmware/export/config/sansaclipv2.h @@ -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 diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h index ef9c007..1b7d76e 100644 --- a/firmware/export/config/sansae200v2.h +++ b/firmware/export/config/sansae200v2.h @@ -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 diff --git a/firmware/export/config/sansafuze.h b/firmware/export/config/sansafuze.h index 15f9f66..e2b3fa8 100644 --- a/firmware/export/config/sansafuze.h +++ b/firmware/export/config/sansafuze.h @@ -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 diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h index 78c2f6b..b725ab5 100644 --- a/firmware/export/config/sansafuzev2.h +++ b/firmware/export/config/sansafuzev2.h @@ -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 diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 03b9d34..9838250 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -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 */ |