From e367b05fca08891b0ae47eab8b4a098253122633 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Tue, 22 Aug 2006 20:17:09 +0000 Subject: Move X5 ADC code to target tree. Fix power button detection on H10. New ADC driver for H10. Thanks to Laurent Baum for all his help with this code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10701 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/adc.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 2f14e3cf48..3a438832d6 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h @@ -21,13 +21,8 @@ #include "config.h" -#ifdef IAUDIO_X5 -#define NUM_ADC_CHANNELS 3 - -#define ADC_BUTTONS 0 -#define ADC_REMOTE 1 -#define ADC_BATTERY 2 -#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ +#ifdef TARGET_TREE +#include "adc-target.h" #elif defined(IPOD_ARCH) #define NUM_ADC_CHANNELS 1 @@ -112,7 +107,7 @@ unsigned short adc_read(int channel); void adc_init(void); #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\ - || defined(IAUDIO_X5) || defined(IPOD_ARCH) + || defined(IPOD_ARCH) /* Force a scan now */ unsigned short adc_scan(int channel); #endif -- cgit v1.2.3