summaryrefslogtreecommitdiff
path: root/firmware/drivers/adc.h
diff options
context:
space:
mode:
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