rockbox/bootloader
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
..
bootloader.make Optional dual-boot support in iAudio X5 and M5 bootloader, based on FS#5289. 2011-06-19 17:23:18 +00:00
common.c bootloaders: cleanup 2011-07-02 02:49:15 +00:00
common.h Rockbox as an application: Commit current Android port progress. 2010-08-02 20:34:47 +00:00
creativezvm.c Sansa AMS bootloader: enter USB mode only when needed 2010-06-23 05:08:36 +00:00
fat32format.c Rework c200wipe to use proper partitioning and formatting code, which makes the code size-independent. 2011-09-02 21:34:28 +00:00
gigabeat-s.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
gigabeat.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
iaudio_coldfire.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
imx233.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
ipod.c Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00
ipodnano2g.c Commit FS#11663 by me - Patch: iPod Nano 2G Bootloader: Boot OF if MENU button is held 2010-10-10 20:52:46 +00:00
iriver_h1x0.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
iriver_h300.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
lyre_proto1.c Remove return value from show_logo() in bootloader/ 2011-09-08 18:31:15 +00:00
main-e200r-installer.c Sansa AMS bootloader: enter USB mode only when needed 2010-06-23 05:08:36 +00:00
main-pp.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
main-ppsansawipe.c Rework c200wipe to use proper partitioning and formatting code, which makes the code size-independent. 2011-09-02 21:34:28 +00:00
Makefile Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00
meizu_m3.c Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00
meizu_m6sl.c Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00
meizu_m6sp.c Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00
mini2440.c Sansa AMS bootloader: enter USB mode only when needed 2010-06-23 05:08:36 +00:00
mpio_hd200_hd300.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
mrobe500.c M:Robe 500 bootloader: change the order of the backlight/lcd setup. 2011-02-06 21:04:51 +00:00
ondavx747.c Remove return value from show_logo() in bootloader/ 2011-09-08 18:31:15 +00:00
rk27xx.c Remove return value from show_logo() in bootloader/ 2011-09-08 18:31:15 +00:00
samsung_yps3.c Update Samsung YP-S3 bootloader demo 2010-05-30 21:43:14 +00:00
sansa_as3525.c Swap red and yellow for green on r31339's cranky builds. 2011-12-17 07:54:00 +00:00
sansaconnect.c The connect is not a PP and doesn't have ATA storage 2012-01-03 04:31:12 +00:00
show_logo.c Add the ability to create a prefilled struct bitmap along with generated images. 2011-11-13 15:37:16 +00:00
SOURCES Sandisk Sansa Connect port (FS #12363) 2011-11-16 14:08:01 +00:00
telechips.c Remove return value from show_logo() in bootloader/ 2011-09-08 18:31:15 +00:00
tpj1022.c Generate C file / header for svn version string 2010-05-27 09:41:46 +00:00