rockbox/firmware/target/hosted/anbernic
Aidan MacDonald 806b71b2ed hosted: consolidate sysfs-based battery measurement code
Several hosted targets read their battery state from a fixed
sysfs path. Get rid of the duplicated code by handling this
common case in power-linux.c.

Some targets use non-standard units in sysfs instead of the
typical microvolts / microamps, so allow the scale factors
to be overridden by the target.

Change-Id: I31dc4ffc7a2d2c066d00a74070f9f9849c1663d0
2025-12-01 13:39:04 +00:00
..
adc-target.h New port: Anbernic RG Nano 2025-07-29 21:01:53 -04:00
backlight-target.h New port: Anbernic RG Nano 2025-07-29 21:01:53 -04:00
button-rgnano.c New port: Anbernic RG Nano 2025-07-29 21:01:53 -04:00
button-target.h New port: Anbernic RG Nano 2025-07-29 21:01:53 -04:00
instant_play.c rgnano: Sleep timer and idle poweroff support 2025-08-15 09:44:35 -04:00
instant_play.h rgnano: Sleep timer and idle poweroff support 2025-08-15 09:44:35 -04:00
powermgmt-rgnano.c hosted: consolidate sysfs-based battery measurement code 2025-12-01 13:39:04 +00:00
system-target.h New port: Anbernic RG Nano 2025-07-29 21:01:53 -04:00