diff options
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r-- | firmware/export/adc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 044391b536..e2c87fa385 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h | |||
@@ -41,8 +41,6 @@ | |||
41 | #define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different | 41 | #define ADC_BUTTON_ROW1 4 /* Used for scanning the keys, different |
42 | voltages for different keys */ | 42 | voltages for different keys */ |
43 | #define ADC_UNREG_POWER 7 /* Battery voltage */ | 43 | #define ADC_UNREG_POWER 7 /* Battery voltage */ |
44 | /* FixMe: this doesn't exist, just to make the compiler happy */ | ||
45 | #define ADC_EXT_POWER 5 /* The external power voltage, V=X*0.0148 */ | ||
46 | 44 | ||
47 | #else | 45 | #else |
48 | /* normal JBR channel assignment */ | 46 | /* normal JBR channel assignment */ |
@@ -51,6 +49,8 @@ | |||
51 | #ifdef HAVE_FMADC | 49 | #ifdef HAVE_FMADC |
52 | #define ADC_CHARGE_REGULATOR 0 /* Uh, we read the battery voltage? */ | 50 | #define ADC_CHARGE_REGULATOR 0 /* Uh, we read the battery voltage? */ |
53 | #define ADC_USB_POWER 1 /* USB, reads 0x000 when USB is inserted */ | 51 | #define ADC_USB_POWER 1 /* USB, reads 0x000 when USB is inserted */ |
52 | #define ADC_BUTTON_OFF 2 /* the off button, high value if pressed */ | ||
53 | #define ADC_BUTTON_ON 3 /* the on button, low value if pressed */ | ||
54 | #else | 54 | #else |
55 | #define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read | 55 | #define ADC_CHARGE_REGULATOR 1 /* Regulator reference voltage, should read |
56 | about 0x1c0 when charging, else 0x3FF */ | 56 | about 0x1c0 when charging, else 0x3FF */ |