summaryrefslogtreecommitdiff
path: root/firmware/export/adc.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-11-18 23:22:08 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-11-18 23:22:08 +0000
commit27d00ca527be6083d281bc316aec4256102c50b3 (patch)
tree418d48acea7ae83cf0e9b8f6b4f8cff3aa282c38 /firmware/export/adc.h
parentfea2472326fe7bc88a2c1011622665bbbbefa05e (diff)
downloadrockbox-27d00ca527be6083d281bc316aec4256102c50b3.tar.gz
rockbox-27d00ca527be6083d281bc316aec4256102c50b3.zip
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.h11
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 @@
19#ifndef _ADC_H_ 19#ifndef _ADC_H_
20#define _ADC_H_ 20#define _ADC_H_
21 21
22#include "config.h"
23
24#ifdef IRIVER_H100
25#define NUM_ADC_CHANNELS 4
26
27#define ADC_BUTTONS 0
28#define ADC_REMOTE 1
29#define ADC_BATTERY 2
30
31#else
22#define NUM_ADC_CHANNELS 8 32#define NUM_ADC_CHANNELS 8
23 33
24#ifdef HAVE_ONDIO_ADC 34#ifdef HAVE_ONDIO_ADC
@@ -56,6 +66,7 @@
56#endif 66#endif
57 67
58#define EXT_SCALE_FACTOR 14800 68#define EXT_SCALE_FACTOR 14800
69#endif
59 70
60unsigned short adc_read(int channel); 71unsigned short adc_read(int channel);
61void adc_init(void); 72void adc_init(void);