1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/hosted/sdl
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
..
app usb-target.h: remove 2011-12-31 18:44:55 +00:00
button-sdl.c Fix yellow. 2011-11-17 20:03:34 +00:00
button-sdl.h Initial maemo platform support 2011-02-08 20:05:25 +00:00
buttonmap.h Rockbox as an application: Add an 320x240 SDL application target. 2010-07-06 15:11:56 +00:00
kernel-sdl.c Hopefully get shutdown/exit handling on SDL/maemo right. 2011-02-28 03:24:48 +00:00
key_to_touch-sdl.c fix button maps and assign some buttons for uisimulator. 2010-10-13 12:54:25 +00:00
lcd-bitmap.c lcd_blit_yuv: move from sdl driver to lcd16bit-common 2011-12-03 21:39:33 +00:00
lcd-bitmap.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-charcells.c Rename sdl lcd initialization to (remote_)lcd_init_device which enables removing two #ifdef SIMULATOR and makes it happen as on target. 2010-05-18 12:27:20 +00:00
lcd-charcells.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-remote-bitmap.c Rename sdl lcd initialization to (remote_)lcd_init_device which enables removing two #ifdef SIMULATOR and makes it happen as on target. 2010-05-18 12:27:20 +00:00
lcd-remote-bitmap.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-sdl.c Define LCD dpi for n900, n8xx and the pandora 2011-04-16 20:27:52 +00:00
lcd-sdl.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
pcm-sdl.c Shuffle some functions around so that interfacing with playback.c in particular isn't required. Though playback does finish the audio init, pcm doesn't care who does it. 2011-09-01 12:15:43 +00:00
sim-ui-defines.h Sansa Connect: Make simulator compile. UI-sansaconnect.bmp by Martin Sägmüller (based on press image). 2011-12-01 13:41:59 +00:00
system-sdl.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
system-sdl.h Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
system-target.h Don't duplicate byteswap code. Invent system where NEED_GENERIC_BYTESWAPS is set if the generic functions from system.h are needed. 2010-07-15 22:01:06 +00:00
thread-sdl.c Change the thread api a bit. 2011-03-05 17:48:06 +00:00
thread-sdl.h Implement cooperative threads on hosted platforms using C code. 2011-02-18 22:46:01 +00:00
timer-sdl.c Add svn:keywords to firmware/target/hosted source files 2011-03-05 15:31:52 +00:00