diff options
Diffstat (limited to 'firmware/drivers/adc.h')
-rw-r--r-- | firmware/drivers/adc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/adc.h b/firmware/drivers/adc.h index f04ab4466d..1c94eec63e 100644 --- a/firmware/drivers/adc.h +++ b/firmware/drivers/adc.h | |||
@@ -25,11 +25,12 @@ | |||
25 | silly scaling */ | 25 | silly scaling */ |
26 | #ifdef HAVE_FMADC | 26 | #ifdef HAVE_FMADC |
27 | #define ADC_CHARGE_REGULATOR 0 /* Uh, we read the battery voltage? */ | 27 | #define ADC_CHARGE_REGULATOR 0 /* Uh, we read the battery voltage? */ |
28 | #define ADC_USB_POWER 1 /* USB, reads 0x000 when USB is inserted */ | ||
28 | #else | 29 | #else |
29 | #define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read | 30 | #define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read |
30 | about 0x1c0 when charging, else 0x3FF */ | 31 | about 0x1c0 when charging, else 0x3FF */ |
31 | #endif | ||
32 | #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 */ |
33 | #endif | ||
33 | 34 | ||
34 | #define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different | 35 | #define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different |
35 | voltages for different keys */ | 36 | voltages for different keys */ |