From bf0e907257fe9446d23c4b32aec9c4f4f5ba03d0 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Fri, 3 Sep 2010 07:03:07 +0000 Subject: 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 --- firmware/export/config/sansac200v2.h | 3 +++ firmware/export/config/sansaclip.h | 3 +++ firmware/export/config/sansaclipplus.h | 2 ++ firmware/export/config/sansaclipv2.h | 3 +++ firmware/export/config/sansae200v2.h | 3 +++ firmware/export/config/sansafuze.h | 3 +++ firmware/export/config/sansafuzev2.h | 3 +++ firmware/export/powermgmt.h | 1 + 8 files changed, 21 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h index aa9ccbe6b3..a87d1543a3 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 3ef6e2649d..d43fa898b0 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 8d6ffac9b5..8a0a0403f3 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 ad960c3051..a39fe3e12c 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 ef9c007a58..1b7d76e650 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 15f9f662cf..e2b3fa8aaa 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 78c2f6b721..b725ab5007 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 03b9d34d54..983825052e 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -22,6 +22,7 @@ #define _POWERMGMT_H_ #include +#include "config.h" #define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */ -- cgit v1.2.3