summaryrefslogtreecommitdiff
path: root/firmware/drivers/adc.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-16 15:11:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-16 15:11:29 +0000
commitd7b4645f5c7274660c9a020f172ac54f546686b5 (patch)
treedd4506aabd67d6e4abb4ec9eebc85219a34e66f2 /firmware/drivers/adc.h
parented69390542e8d4a1d8b46853807db28db28e4b46 (diff)
downloadrockbox-d7b4645f5c7274660c9a020f172ac54f546686b5.tar.gz
rockbox-d7b4645f5c7274660c9a020f172ac54f546686b5.zip
Ludovic Lange's initial code for FM Recorder, edited and adjusted by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/adc.h')
-rw-r--r--firmware/drivers/adc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/adc.h b/firmware/drivers/adc.h
index 0c05f4d0f8..9c90cb08a7 100644
--- a/firmware/drivers/adc.h
+++ b/firmware/drivers/adc.h
@@ -23,8 +23,12 @@
23 23
24#define ADC_BATTERY 0 /* Battery voltage always reads 0x3FF due to 24#define ADC_BATTERY 0 /* Battery voltage always reads 0x3FF due to
25 silly scaling */ 25 silly scaling */
26#ifdef HAVE_FMADC
27#define ADC_CHARGE_REGULATOR 0 /* Uh, we read the battery voltage? */
28#else
26#define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read 29#define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read
27 about 0x1c0 when charging, else 0x3FF */ 30 about 0x1c0 when charging, else 0x3FF */
31#endif
28#define ADC_USB_POWER 2 /* USB, reads 0x3FF when USB is inserted */ 32#define ADC_USB_POWER 2 /* USB, reads 0x3FF when USB is inserted */
29 33
30#define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different 34#define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different