diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-07-08 06:31:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-08 06:31:13 +0000 |
commit | 8493ccb285937b54ddc8a50ae092c7a9a044b2a3 (patch) | |
tree | ce6000516ac0023fc223a046e9df2fb34a9a26a8 /firmware/export/adc.h | |
parent | c28969d11f16b53c50918b06dbe9e545e33ce323 (diff) | |
download | rockbox-8493ccb285937b54ddc8a50ae092c7a9a044b2a3.tar.gz rockbox-8493ccb285937b54ddc8a50ae092c7a9a044b2a3.zip |
Renamed the iriver h120 defines and configs to "h120"! Added initial support
for the h100 series.
Please re-run configure.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7062 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r-- | firmware/export/adc.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 40bc3e108a..18b0c3d578 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | 23 | ||
24 | #ifdef IRIVER_H100 | 24 | #ifdef IRIVER_H100_SERIES |
25 | #define NUM_ADC_CHANNELS 4 | 25 | #define NUM_ADC_CHANNELS 4 |
26 | 26 | ||
27 | #define ADC_BUTTONS 0 | 27 | #define ADC_BUTTONS 0 |
@@ -30,6 +30,15 @@ | |||
30 | #define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ | 30 | #define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ |
31 | 31 | ||
32 | #else | 32 | #else |
33 | #ifdef IRIVER_H300 | ||
34 | /* TODO: we don't have enough info about the ADC for the H3x0 for now, so this | ||
35 | stuff is only added here for now to make things compile. */ | ||
36 | #define ADC_BUTTONS -2 | ||
37 | #define ADC_REMOTE -3 | ||
38 | unsigned char adc_scan(int channel); | ||
39 | |||
40 | #endif | ||
41 | |||
33 | #define NUM_ADC_CHANNELS 8 | 42 | #define NUM_ADC_CHANNELS 8 |
34 | 43 | ||
35 | #ifdef HAVE_ONDIO_ADC | 44 | #ifdef HAVE_ONDIO_ADC |
@@ -73,7 +82,7 @@ | |||
73 | unsigned short adc_read(int channel); | 82 | unsigned short adc_read(int channel); |
74 | void adc_init(void); | 83 | void adc_init(void); |
75 | 84 | ||
76 | #ifdef IRIVER_H100 | 85 | #ifdef IRIVER_H120 |
77 | unsigned char adc_scan(int channel); | 86 | unsigned char adc_scan(int channel); |
78 | #endif | 87 | #endif |
79 | 88 | ||