diff options
author | Torne Wuff <torne@wolfpuppy.org.uk> | 2009-11-03 20:35:04 +0000 |
---|---|---|
committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2009-11-03 20:35:04 +0000 |
commit | 2d0af6f3c7f1a33337ab5d9498364149104fd346 (patch) | |
tree | 84109df61eae758cf6368e9b1e4d52a205502541 /firmware/target/arm/ipod/adc-target.h | |
parent | 9c343fab5dca19e89488170e8076f2b9f255151f (diff) |
FS#9728: Battery current measuring on the Video iPod
Patch by Boris Gjenero. Displays the current flowing into or out of the
battery on the ipodvideo. Other ipods do not appear to have this ADC channel
connected.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23500 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod/adc-target.h')
-rw-r--r-- | firmware/target/arm/ipod/adc-target.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/target/arm/ipod/adc-target.h b/firmware/target/arm/ipod/adc-target.h index 14b10e6a2b..708febac9d 100644 --- a/firmware/target/arm/ipod/adc-target.h +++ b/firmware/target/arm/ipod/adc-target.h @@ -21,12 +21,16 @@ #ifndef _ADC_TARGET_H_ #define _ADC_TARGET_H_ -#define NUM_ADC_CHANNELS 2 - #define ADC_BATTERY 0 #define ADC_ACCESSORY 1 #define ADC_UNREG_POWER ADC_BATTERY - +#ifdef IPOD_VIDEO +#define ADC_4066_ISTAT 2 +#define NUM_ADC_CHANNELS 3 +#else +#define NUM_ADC_CHANNELS 2 +#endif + /* Force a scan now */ unsigned short adc_scan(int channel); #endif |