rockbox/firmware/target/arm/ipod
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
..
1g2g Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
3g
video Set the default battery capacity for ipod video properly depending on detected RAM size. 2011-07-19 20:48:16 +00:00
adc-ipod-pcf.c ipod nano 1g: enable readout of battery current through ADC channel 4066_ISTAT 2011-07-24 17:32:50 +00:00
adc-target.h ipod nano 1g: enable readout of battery current through ADC channel 4066_ISTAT 2011-07-24 17:32:50 +00:00
app.lds Fix path to PP crt0 2012-01-03 04:44:27 +00:00
backlight-4g_color.c Fix FS#11820. Implement LCD shutdown for iPod Photo/Color and iPod nano 1G. The code was taken from FS#10034 and slightly changed to avoid white flashing when shutting off the display. 2011-01-12 07:36:02 +00:00
backlight-mini1g_mini2g.c
backlight-nano_video.c Revert unneeded change from r29026. 2011-01-10 21:04:10 +00:00
backlight-target.h
boot.lds Fix path to PP crt0 2012-01-03 04:44:27 +00:00
button-1g-3g.c
button-clickwheel.c Make local functions and variables static where possible 2011-11-03 23:32:49 +00:00
button-mini1g.c
button-target.h
lcd-as-color-nano.S Remove superfluous executable bits on a bunch of files. 2011-06-08 14:22:03 +00:00
lcd-as-gray.S
lcd-color_nano.c ipod nano 1g: enable LCD invert 2011-07-20 22:05:16 +00:00
lcd-gray.c
piezo.c 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
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
power-ipod.c
powermgmt-ipod-pcf.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00