rockbox/firmware/target/arm/s5l8700/ipodnano2g
Thomas Martitz c1bd9b0361 Rework powermgmt to enable code re-use on appliation and sims.
* Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application)
to break powermgmt.c's assumption about the ability to read battery voltage.
There's now additionally percentage (android) and remaining time measure
(maemo). No measure at all also works (sdl app). If voltage can't be measured,
then battery_level() is king and it'll be used for power_history and runtime
estimation.

* Implement target's API in the simulator, i.e. _battery_voltage(), so it
doesn't need to implement it's own powermgmt.c and other stubs. Now
the sim behaves much more like a native target, although it still
changes the simulated battery voltage quickly,

* Other changes include include renaming battery_adc_voltage() to
_battery_voltage(), for consistency with the new target functions and
making some of the apps code aware that voltage and runtime estimation
is not always available.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
2012-01-03 23:44:38 +00:00
..
adc-nano2g.c
audio-nano2g.c
backlight-nano2g.c
button-target.h
ftl-nano2g.c
ftl-target.h
lcd-asm-nano2g.S Remove superfluous executable bits on a bunch of files. 2011-06-08 14:22:03 +00:00
lcd-nano2g.c Make more local functions static. 2011-12-21 17:36:18 +00:00
nand-nano2g.c Swap red and yellow for green on r31339's cranky builds. 2011-12-17 07:54:00 +00:00
nand-target.h
piezo-nano2g.c Make more local functions static. 2011-12-21 17:36:18 +00:00
piezo.h Fix the gpl notice in the previous commits new files, and fix the yelow gevearts naughtily ignored 2011-11-16 10:37:48 +00:00
pmu-nano2g.c
pmu-target.h
power-nano2g.c
powermgmt-nano2g.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
rtc-nano2g.c