summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-01-09 18:55:28 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-01-09 20:12:41 +0000
commitc62c323ebc71da33bf653624e45becee096906c3 (patch)
treea328d9400b9b2ff4c637110cf5fb701d5eba5904 /firmware/export
parentb490f08b7c6f8b32b214e0fbf6dd3974066ec150 (diff)
downloadrockbox-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')
-rw-r--r--firmware/export/axp-pmu.h4
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 @@
#define ADC_CHARGE_CURRENT 7
#define ADC_DISCHARGE_CURRENT 8
#define ADC_APS_VOLTAGE 9
-#define ADC_BATTERY_POWER 10
-#define NUM_ADC_CHANNELS 11
+#define NUM_ADC_CHANNELS 10
/* ADC sampling rates */
#define AXP_ADC_RATE_25HZ 0
@@ -123,7 +122,6 @@ extern int axp_input_status(void);
extern int axp_adc_read(int adc);
extern int axp_adc_read_raw(int adc);
extern int axp_adc_conv_raw(int adc, int value);
-extern int axp_adc_get_enabled(void);
extern void axp_adc_set_enabled(int adc_bits);
extern int axp_adc_get_rate(void);
extern void axp_adc_set_rate(int rate);