summaryrefslogtreecommitdiff
path: root/firmware/target/arm/adc-pp5020.c
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2009-01-27 03:19:57 +0000
committerMark Arigo <markarigo@gmail.com>2009-01-27 03:19:57 +0000
commit04992ef050a2bef8387f84efc6988211c34e19b7 (patch)
treeb9f5682b66fde3548ae059c4a6b0785024997274 /firmware/target/arm/adc-pp5020.c
parenta4e7bc383ed296b532a648a02db62a06c99c9ad8 (diff)
downloadrockbox-04992ef050a2bef8387f84efc6988211c34e19b7.tar.gz
rockbox-04992ef050a2bef8387f84efc6988211c34e19b7.zip
Move the PP5020 ADC defines to the c-file instead of repeating them across the header files. Also, the Tatung TPJ1022 should use the common PP5020 ADC driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/adc-pp5020.c')
-rw-r--r--firmware/target/arm/adc-pp5020.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/adc-pp5020.c b/firmware/target/arm/adc-pp5020.c
index 33950014dc..e270a41235 100644
--- a/firmware/target/arm/adc-pp5020.c
+++ b/firmware/target/arm/adc-pp5020.c
@@ -25,6 +25,12 @@
25#include "thread.h" 25#include "thread.h"
26#include "adc.h" 26#include "adc.h"
27 27
28#define ADC_ADDR (*(volatile unsigned long*)(0x7000ad00))
29#define ADC_STATUS (*(volatile unsigned long*)(0x7000ad04))
30#define ADC_DATA_1 (*(volatile unsigned long*)(0x7000ad20))
31#define ADC_DATA_2 (*(volatile unsigned long*)(0x7000ad24))
32#define ADC_INIT (*(volatile unsigned long*)(0x7000ad2c))
33
28static unsigned short adcdata[NUM_ADC_CHANNELS]; 34static unsigned short adcdata[NUM_ADC_CHANNELS];
29 35
30/* Scan ADC so that adcdata[channel] gets updated. */ 36/* Scan ADC so that adcdata[channel] gets updated. */