Updated our source code header to explicitly mention that we are GPL v2 or
[Rockbox.git] / firmware / target / sh / archos / ondio / adc-target.h
bloba39ee110f34f90d4b0c6278df1a1d2f57e6e80ab
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _ADC_TARGET_H_
22 #define _ADC_TARGET_H_
24 #define NUM_ADC_CHANNELS 8
26 #define ADC_MMC_SWITCH 0 /* low values if MMC inserted */
27 #define ADC_USB_POWER 1 /* USB, reads 0x000 when USB is inserted */
28 #define ADC_BUTTON_OPTION 2 /* the option button, low value if pressed */
29 #define ADC_BUTTON_ONOFF 3 /* the on/off button, high value if pressed */
30 #define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different
31 voltages for different keys */
32 #define ADC_USB_ACTIVE 5 /* USB bridge activity */
33 #define ADC_UNREG_POWER 7 /* Battery voltage */
35 #define EXT_SCALE_FACTOR 14800
37 #endif /* _ADC_TARGET_H_ */