From 04992ef050a2bef8387f84efc6988211c34e19b7 Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Tue, 27 Jan 2009 03:19:57 +0000 Subject: 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 --- firmware/target/arm/adc-pp5020.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/arm/adc-pp5020.c') 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 @@ #include "thread.h" #include "adc.h" +#define ADC_ADDR (*(volatile unsigned long*)(0x7000ad00)) +#define ADC_STATUS (*(volatile unsigned long*)(0x7000ad04)) +#define ADC_DATA_1 (*(volatile unsigned long*)(0x7000ad20)) +#define ADC_DATA_2 (*(volatile unsigned long*)(0x7000ad24)) +#define ADC_INIT (*(volatile unsigned long*)(0x7000ad2c)) + static unsigned short adcdata[NUM_ADC_CHANNELS]; /* Scan ADC so that adcdata[channel] gets updated. */ -- cgit v1.2.3