diff options
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r-- | firmware/export/adc.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 2f14e3cf48..3a438832d6 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h | |||
@@ -21,13 +21,8 @@ | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | 23 | ||
24 | #ifdef IAUDIO_X5 | 24 | #ifdef TARGET_TREE |
25 | #define NUM_ADC_CHANNELS 3 | 25 | #include "adc-target.h" |
26 | |||
27 | #define ADC_BUTTONS 0 | ||
28 | #define ADC_REMOTE 1 | ||
29 | #define ADC_BATTERY 2 | ||
30 | #define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ | ||
31 | 26 | ||
32 | #elif defined(IPOD_ARCH) | 27 | #elif defined(IPOD_ARCH) |
33 | #define NUM_ADC_CHANNELS 1 | 28 | #define NUM_ADC_CHANNELS 1 |
@@ -112,7 +107,7 @@ unsigned short adc_read(int channel); | |||
112 | void adc_init(void); | 107 | void adc_init(void); |
113 | 108 | ||
114 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\ | 109 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\ |
115 | || defined(IAUDIO_X5) || defined(IPOD_ARCH) | 110 | || defined(IPOD_ARCH) |
116 | /* Force a scan now */ | 111 | /* Force a scan now */ |
117 | unsigned short adc_scan(int channel); | 112 | unsigned short adc_scan(int channel); |
118 | #endif | 113 | #endif |