mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
b490f08b7c
commit
c62c323ebc
5 changed files with 60 additions and 129 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue