Clipv1: charging curve

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26220 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-20 23:16:04 +00:00
parent 26c8eebe4f
commit 7f24c3095d
2 changed files with 12 additions and 5 deletions

View file

@ -24,11 +24,19 @@
#include "config.h"
#if defined(SANSA_CLIP) \
|| defined(SANSA_CLIPPLUS) /* FIXME */
#if defined(SANSA_CLIP)
/* Check if topped-off and monitor voltage while plugged. */
#define BATT_FULL_VOLTAGE 4160
#define BATT_FULL_VOLTAGE 4190
#define BATT_VAUTO_RECHARGE 4100
#define BATT_CHG_V CHG_V_4_20V
#define BATT_CHG_I CHG_I_100MA
#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */
#elif defined(SANSA_CLIPPLUS)
/* Check if topped-off and monitor voltage while plugged. */
#define BATT_FULL_VOLTAGE 4200
#define BATT_VAUTO_RECHARGE 4100
#define BATT_CHG_V CHG_V_4_20V
#define BATT_CHG_I CHG_I_100MA

View file

@ -44,8 +44,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
{
/* TODO: simple linear uncalibrated curve */
3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200
3427, 3786, 3842, 3877, 3896, 3924, 3971, 4028, 4084, 4161, 4190
};
#endif /* CONFIG_CHARGING */