diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-31 01:22:23 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-31 01:22:23 +0000 |
| commit | 124188f41c9fe6eefd06e472eae98c8d6cdff552 (patch) | |
| tree | 54c9857bddf96bdaad5e304f802b40a7348df3b1 | |
| parent | e35fe82931883ca161c769deabb964b6a4458587 (diff) | |
| download | rockbox-124188f41c9fe6eefd06e472eae98c8d6cdff552.zip rockbox-124188f41c9fe6eefd06e472eae98c8d6cdff552.tar.gz rockbox-124188f41c9fe6eefd06e472eae98c8d6cdff552.tar.bz2 rockbox-124188f41c9fe6eefd06e472eae98c8d6cdff552.tar.xz | |
Clipv2/Clip+ : use CHG_IN adc channel, it seems to work better than BVDD and RTCSUP
They're all the same when charger is unplugged, but when it's plugged:
- BVDD is way too high
- RTCSUP oscillates between 2 values
- CHG_IN acts like RTCSUP on some models but seems to works fine on my Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25405 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/as3525/powermgmt-target.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/powermgmt-target.h b/firmware/target/arm/as3525/powermgmt-target.h index 511bcc7..cc7441f 100644 --- a/firmware/target/arm/as3525/powermgmt-target.h +++ b/firmware/target/arm/as3525/powermgmt-target.h @@ -35,9 +35,11 @@ #if defined(SANSA_CLIP) #define ADC_BATTERY ADC_BVDD #else -/* ADC_RTCSUP seems to represent battery voltage better than ADC_BVDD during - * charging (ADC_BVDD is way too high) and appears the same in normal use. */ -#define ADC_BATTERY ADC_RTCSUP +/* ADC_CHG_IN seems to represent battery voltage better than ADC_BVDD during + * charging (ADC_BVDD is way too high) and appears the same in normal use. + * Note that when charging some models do not give an accurate reading but jump + * between 2 values. */ +#define ADC_BATTERY ADC_CHG_IN #endif #elif defined(SANSA_E200V2) |