From 8876018d25c6a56cce118482c1372bbff344cb23 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 5 Mar 2007 00:04:00 +0000 Subject: Bring up the M5 port to a working stage: Extended numerous explicit checks for IAUDIO_X5 to also check for IAUDIO_M5, moved code around the target tree, added preliminary background for the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12610 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iaudio/adc-target.h | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 firmware/target/coldfire/iaudio/adc-target.h (limited to 'firmware/target/coldfire/iaudio/adc-target.h') diff --git a/firmware/target/coldfire/iaudio/adc-target.h b/firmware/target/coldfire/iaudio/adc-target.h new file mode 100644 index 0000000000..28ba6225d1 --- /dev/null +++ b/firmware/target/coldfire/iaudio/adc-target.h @@ -0,0 +1,35 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2002 by Linus Nielsen Feltzing + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef _ADC_TARGET_H_ +#define _ADC_TARGET_H_ + +#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 */ + +/* Force a scan now */ +unsigned short adc_scan(int channel); +static inline unsigned short adc_read(int channel) + { return adc_scan(channel); } +static inline void adc_init(void) + {} +#endif /* _ADC_TARGET_H_ */ -- cgit v1.2.3