forked from len0rd/rockbox
Improved ADC driver for AS3514 (used in PP5024 - ie. Sansa e200) based off datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12745 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b051f101d9
commit
7f4f9aead7
5 changed files with 70 additions and 15 deletions
|
|
@ -88,7 +88,7 @@
|
|||
#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
|
||||
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
|
||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||
#define BATTERY_SCALE_FACTOR 5054
|
||||
#define BATTERY_SCALE_FACTOR 5005 /* ADC should read 0x3ff=5.12V */
|
||||
|
||||
/* Hardware controlled charging? FIXME */
|
||||
#define CONFIG_CHARGING CHARGING_SIMPLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue