diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-03-10 18:10:00 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-10 18:29:29 -0500 |
commit | 555299af9f0ee71c1ad86a6c6846748861be458b (patch) | |
tree | 2237e2991231cf529420f52c10a91912ed94bf06 /firmware/target/hosted/aigo/power-erosq.h | |
parent | b3b8310e4e07902a8280a120948f0c32c85e67de (diff) | |
download | rockbox-555299af9f0ee71c1ad86a6c6846748861be458b.tar.gz rockbox-555299af9f0ee71c1ad86a6c6846748861be458b.zip |
hosted: Consolidate the code that polls the battery charging status
affects all hiby targets, fiiom3k, and ibasso dx50/dx90
As well as deduplicating a small pile of code, this also implements
hysteresis so we're not doing a sysfs read/lookup multiple times
back-to-back every time the power management tick fires.
Change-Id: I2f7672acbb36341becf67e07960c24c681270d09
Diffstat (limited to 'firmware/target/hosted/aigo/power-erosq.h')
-rw-r--r-- | firmware/target/hosted/aigo/power-erosq.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/target/hosted/aigo/power-erosq.h b/firmware/target/hosted/aigo/power-erosq.h index d06b956924..213d55faa6 100644 --- a/firmware/target/hosted/aigo/power-erosq.h +++ b/firmware/target/hosted/aigo/power-erosq.h | |||
@@ -23,9 +23,6 @@ | |||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "config.h" | 24 | #include "config.h" |
25 | 25 | ||
26 | unsigned int erosq_power_input_status(void); | ||
27 | bool erosq_power_charging_status(void); | ||
28 | unsigned int erosq_power_get_battery_voltage(void); | 26 | unsigned int erosq_power_get_battery_voltage(void); |
29 | unsigned int erosq_power_get_battery_capacity(void); | 27 | unsigned int erosq_power_get_battery_capacity(void); |
30 | #endif /* _POWER_XDUOO_H_ */ | 28 | #endif /* _POWER_XDUOO_H_ */ |
31 | |||