summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/adc-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/adc-target.h')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/adc-target.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/adc-target.h b/firmware/target/arm/imx31/gigabeat-s/adc-target.h
index 6b066b0b59..0b74ad84eb 100644
--- a/firmware/target/arm/imx31/gigabeat-s/adc-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/adc-target.h
@@ -19,25 +19,26 @@
19#ifndef _ADC_TARGET_H_ 19#ifndef _ADC_TARGET_H_
20#define _ADC_TARGET_H_ 20#define _ADC_TARGET_H_
21 21
22/* only two channels used by the Gigabeat */ 22/* 16 channels in groups of 8 - each conversion converts 8 channels in
23 * a group of 8 inputs */
23#define NUM_ADC_CHANNELS 16 24#define NUM_ADC_CHANNELS 16
24 25
25#define ADC_BATTERY 0 26#define ADC_BATTERY 0 /* Battery Voltage (BATT) */
26#define ADC_UNKNOWN_1 1 27#define ADC_UNUSED1 1 /* Battery Current (BATT-BATTISNS) */
27#define ADC_UNKNOWN_2 2 28#define ADC_APPLICATION_SUPPLY 2 /* Application Supply (BP) */
28#define ADC_UNKNOWN_3 3 29#define ADC_CHARGER_VOLTAGE 3 /* Charger Voltage (CHRGRAW) */
29#define ADC_UNKNOWN_4 4 30#define ADC_CHARGER_CURRENT 4 /* Charger Current (CHRGISNSP-CHRGISNSN) */
30#define ADC_UNKNOWN_5 5 31#define ADC_BATTERY_TEMP 5 /* General Purpose ADIN5 / Battery Pack Thermistor */
31#define ADC_UNKNOWN_6 6 32#define ADC_UNUSED6 6 /* General Purpose ADIN6 / Backup Voltage (LICELL) */
32#define ADC_UNKNOWN_7 7 33#define ADC_UNUSED7 7 /* General Purpose ADIN7 / UID / Die Temperature */
33#define ADC_HPREMOTE 8 34#define ADC_HPREMOTE 8 /* General-purpose ADIN8 (Remote control) */
34#define ADC_UNKNOWN_9 9 35#define ADC_UNUSED9 9 /* General-purpose ADIN9 */
35#define ADC_UNKNOWN_10 10 36#define ADC_UNUSED10 10 /* General-purpose ADIN10 */
36#define ADC_UNKNOWN_11 11 37#define ADC_UNUSED11 11 /* General-purpose ADIN11 */
37#define ADC_UNKNOWN_12 12 38#define ADC_UNUSED12 12 /* General-purpose TSX1/Touch screen X-plate 1 */
38#define ADC_UNKNOWN_13 13 39#define ADC_UNUSED13 13 /* General-purpose TSX2/Touch screen X-plate 2 */
39#define ADC_UNKNOWN_14 14 40#define ADC_UNUSED14 14 /* General-purpose TSY1/Touch screen Y-plate 1 */
40#define ADC_UNKNOWN_15 15 41#define ADC_UNUSED15 15 /* General-purpose TSY2/Touch screen Y-plate 2 */
41 42
42 43
43#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ 44#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */