mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
Clipv2: charging curve + voltage limits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26200 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a379bce60
commit
0a21ffabbe
2 changed files with 11 additions and 3 deletions
|
|
@ -25,7 +25,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if defined(SANSA_CLIP) \
|
#if defined(SANSA_CLIP) \
|
||||||
|| defined(SANSA_CLIPV2) /* FIXME */ \
|
|
||||||
|| defined(SANSA_CLIPPLUS) /* FIXME */
|
|| defined(SANSA_CLIPPLUS) /* FIXME */
|
||||||
|
|
||||||
/* Check if topped-off and monitor voltage while plugged. */
|
/* Check if topped-off and monitor voltage while plugged. */
|
||||||
|
|
@ -35,6 +34,15 @@
|
||||||
#define BATT_CHG_I CHG_I_100MA
|
#define BATT_CHG_I CHG_I_100MA
|
||||||
#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */
|
#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */
|
||||||
|
|
||||||
|
#elif defined(SANSA_CLIPV2)
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */
|
||||||
|
|
||||||
#elif defined(SANSA_E200V2)
|
#elif defined(SANSA_E200V2)
|
||||||
|
|
||||||
/* Check if topped-off and monitor voltage while plugged. */
|
/* Check if topped-off and monitor voltage while plugged. */
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
|
||||||
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
||||||
const unsigned short percent_to_volt_charge[11] =
|
const unsigned short percent_to_volt_charge[11] =
|
||||||
{
|
{
|
||||||
/* TODO: simple linear uncalibrated curve */
|
3379, 3766, 3828, 3855, 3875, 3911, 3975, 4035, 4117, 4217, 4219
|
||||||
3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200
|
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_CHARGING */
|
#endif /* CONFIG_CHARGING */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue