rockbox/uisimulator/common
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
..
player_icons
backlight-sim.c Fix simulator brightness calculation in case MIN_BRIGHTNESS_SETTING != 1 2011-10-30 20:06:30 +00:00
backlight-sim.h
fmradio.c Make the %tr (radio RSSI) tag work as a bar tag or as a conditional. 2010-11-18 11:47:42 +00:00
font-player.c Fix player sim yellow 2010-12-02 21:31:38 +00:00
font-player.h Fix player sim yellow 2010-12-02 21:31:38 +00:00
io.c r30706 was not the right fix - thanks to amiconn for catching the error 2011-10-04 00:42:00 +00:00
lcd-common.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
lcd-playersim.c
lcd-playersim.h
Makefile Rename/change SIMVER to APP_TYPE in the Makefiles. 2010-07-10 13:49:49 +00:00
powermgmt-sim.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
README
sim_icons.c sim_icons.c is actually only for charcell display simulation. 2010-06-22 23:22:31 +00:00
sim_tasks.c Simulate usb plugging on the sim better using sim_tasks. 2011-11-17 18:40:00 +00:00
sim_tasks.h Simulate usb plugging on the sim better using sim_tasks. 2011-11-17 18:40:00 +00:00
sound.h
SOURCES Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
stubs.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00

               __________               __   ___.
     Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
     Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
     Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
     Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
                       \/            \/     \/    \/            \/

This directory is for code that is shared between all versions of the
simulator, but is not needed for the target device.