diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-09 18:55:28 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-09 20:12:41 +0000 |
commit | c62c323ebc71da33bf653624e45becee096906c3 (patch) | |
tree | a328d9400b9b2ff4c637110cf5fb701d5eba5904 /firmware/export/axp-pmu.h | |
parent | b490f08b7c6f8b32b214e0fbf6dd3974066ec150 (diff) | |
download | rockbox-c62c323ebc71da33bf653624e45becee096906c3.tar.gz rockbox-c62c323ebc71da33bf653624e45becee096906c3.zip |
axp-pmu: adc refactor
Remove the battery power ADC since it's not used right now,
and seems to fluctuate too rapidly to be of much use.
Change-Id: If115e4e3ce14d4c18ce899f5a889f7f99ab66489
Diffstat (limited to 'firmware/export/axp-pmu.h')
-rw-r--r-- | firmware/export/axp-pmu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/export/axp-pmu.h b/firmware/export/axp-pmu.h index 553410ced8..24c992dea3 100644 --- a/firmware/export/axp-pmu.h +++ b/firmware/export/axp-pmu.h | |||
@@ -37,8 +37,7 @@ | |||
37 | #define ADC_CHARGE_CURRENT 7 | 37 | #define ADC_CHARGE_CURRENT 7 |
38 | #define ADC_DISCHARGE_CURRENT 8 | 38 | #define ADC_DISCHARGE_CURRENT 8 |
39 | #define ADC_APS_VOLTAGE 9 | 39 | #define ADC_APS_VOLTAGE 9 |
40 | #define ADC_BATTERY_POWER 10 | 40 | #define NUM_ADC_CHANNELS 10 |
41 | #define NUM_ADC_CHANNELS 11 | ||
42 | 41 | ||
43 | /* ADC sampling rates */ | 42 | /* ADC sampling rates */ |
44 | #define AXP_ADC_RATE_25HZ 0 | 43 | #define AXP_ADC_RATE_25HZ 0 |
@@ -123,7 +122,6 @@ extern int axp_input_status(void); | |||
123 | extern int axp_adc_read(int adc); | 122 | extern int axp_adc_read(int adc); |
124 | extern int axp_adc_read_raw(int adc); | 123 | extern int axp_adc_read_raw(int adc); |
125 | extern int axp_adc_conv_raw(int adc, int value); | 124 | extern int axp_adc_conv_raw(int adc, int value); |
126 | extern int axp_adc_get_enabled(void); | ||
127 | extern void axp_adc_set_enabled(int adc_bits); | 125 | extern void axp_adc_set_enabled(int adc_bits); |
128 | extern int axp_adc_get_rate(void); | 126 | extern int axp_adc_get_rate(void); |
129 | extern void axp_adc_set_rate(int rate); | 127 | extern void axp_adc_set_rate(int rate); |