Daniel Ankers | d8ef7c5 | 2006-10-16 17:21:36 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 by Barry Wardell |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 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. |
Daniel Ankers | d8ef7c5 | 2006-10-16 17:21:36 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | #ifndef _ADC_TARGET_H_ |
| 22 | #define _ADC_TARGET_H_ |
Daniel Stenberg | 17e379b | 2006-08-29 14:57:45 +0000 | [diff] [blame] | 23 | |
Barry Wardell | 7f4f9ae | 2007-03-13 01:50:13 +0000 | [diff] [blame] | 24 | /* ADC channels */ |
| 25 | #define NUM_ADC_CHANNELS 13 |
Daniel Stenberg | 17e379b | 2006-08-29 14:57:45 +0000 | [diff] [blame] | 26 | |
Barry Wardell | 7f4f9ae | 2007-03-13 01:50:13 +0000 | [diff] [blame] | 27 | #define ADC_BVDD 0 /* Battery voltage of 4V LiIo accumulator */ |
| 28 | #define ADC_RTCSUP 1 /* RTC backup battery voltage */ |
| 29 | #define ADC_UVDD 2 /* USB host voltage */ |
| 30 | #define ADC_CHG_IN 3 /* Charger input voltage */ |
| 31 | #define ADC_CVDD 4 /* Charger pump output voltage */ |
| 32 | #define ADC_BATTEMP 5 /* Battery charging temperature */ |
| 33 | #define ADC_MICSUP1 6 /* Voltage on MicSup1 for remote control |
| 34 | or external voltage measurement */ |
| 35 | #define ADC_MICSUP2 7 /* Voltage on MicSup1 for remote control |
| 36 | or external voltage measurement */ |
| 37 | #define ADC_VBE1 8 /* Measuring junction temperature @ 2uA */ |
| 38 | #define ADC_VBE2 9 /* Measuring junction temperature @ 1uA */ |
| 39 | #define ADC_I_MICSUP1 10 /* Current of MicSup1 for remote control detection */ |
| 40 | #define ADC_I_MICSUP2 11 /* Current of MicSup2 for remote control detection */ |
| 41 | #define ADC_VBAT 12 /* Single cell battery voltage */ |
| 42 | |
| 43 | #define ADC_UNREG_POWER ADC_BVDD /* For compatibility */ |
Daniel Ankers | d8ef7c5 | 2006-10-16 17:21:36 +0000 | [diff] [blame] | 44 | |
| 45 | #endif |