summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/adc-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/adc-target.h')
-rw-r--r--firmware/target/arm/ipod/adc-target.h10
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 @@
21#ifndef _ADC_TARGET_H_ 21#ifndef _ADC_TARGET_H_
22#define _ADC_TARGET_H_ 22#define _ADC_TARGET_H_
23 23
24#define NUM_ADC_CHANNELS 2
25
26#define ADC_BATTERY 0 24#define ADC_BATTERY 0
27#define ADC_ACCESSORY 1 25#define ADC_ACCESSORY 1
28#define ADC_UNREG_POWER ADC_BATTERY 26#define ADC_UNREG_POWER ADC_BATTERY
29 27#ifdef IPOD_VIDEO
28#define ADC_4066_ISTAT 2
29#define NUM_ADC_CHANNELS 3
30#else
31#define NUM_ADC_CHANNELS 2
32#endif
33
30/* Force a scan now */ 34/* Force a scan now */
31unsigned short adc_scan(int channel); 35unsigned short adc_scan(int channel);
32#endif 36#endif