diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-11-18 23:22:08 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-11-18 23:22:08 +0000 |
commit | 27d00ca527be6083d281bc316aec4256102c50b3 (patch) | |
tree | 418d48acea7ae83cf0e9b8f6b4f8cff3aa282c38 /firmware/export/adc.h | |
parent | fea2472326fe7bc88a2c1011622665bbbbefa05e (diff) |
Added iRiver ADC channel info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5429 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r-- | firmware/export/adc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 966714cbbd..d738a965e6 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h @@ -19,6 +19,16 @@ #ifndef _ADC_H_ #define _ADC_H_ +#include "config.h" + +#ifdef IRIVER_H100 +#define NUM_ADC_CHANNELS 4 + +#define ADC_BUTTONS 0 +#define ADC_REMOTE 1 +#define ADC_BATTERY 2 + +#else #define NUM_ADC_CHANNELS 8 #ifdef HAVE_ONDIO_ADC @@ -56,6 +66,7 @@ #endif #define EXT_SCALE_FACTOR 14800 +#endif unsigned short adc_read(int channel); void adc_init(void); |