summaryrefslogtreecommitdiff
path: root/firmware/export/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r--firmware/export/adc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h
index 454c102403..b0a83d9bd0 100644
--- a/firmware/export/adc.h
+++ b/firmware/export/adc.h
@@ -29,6 +29,12 @@
29#define ADC_BATTERY 2 29#define ADC_BATTERY 2
30#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ 30#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */
31 31
32#elif defined(IPOD_ARCH)
33#define NUM_ADC_CHANNELS 1
34
35#define ADC_BATTERY 0
36#define ADC_UNREG_POWER ADC_BATTERY
37
32#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) 38#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
33#define NUM_ADC_CHANNELS 4 39#define NUM_ADC_CHANNELS 4
34 40
@@ -94,7 +100,7 @@ void adc_init(void);
94 100
95#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\ 101#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\
96 || defined(IAUDIO_X5) 102 || defined(IAUDIO_X5)
97unsigned char adc_scan(int channel); 103unsigned short adc_scan(int channel);
98#endif 104#endif
99 105
100#endif 106#endif