1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/arm/pnx0101
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
..
iriver-ifp7xx Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
app.lds Add KEEP() around vectors in linker scripts. 2011-12-18 06:43:08 +00:00
backlight-target.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
crt0-pnx0101.S Switch to SYS mode on arm FS#12322 by me 2011-10-11 16:06:03 +00:00
debug-pnx0101.c move dbg_ports() from apps/menu_debug.c to target tree. FS#11712 by me. 2010-11-06 14:24:25 +00:00
debug-target.h move dbg_ports() from apps/menu_debug.c to target tree. FS#11712 by me. 2010-11-06 14:24:25 +00:00
i2c-pnx0101.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
kernel-pnx0101.c Move kernel tick initialization and handling to the target tree for ones remaining in kernel.c 2008-10-29 10:26:46 +00:00
pcm-pnx0101.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
system-pnx0101.c Clean up panicf and introduce system_exception_wait to do further target tasks and wait for a button when an unrecoverable error has occurred (panic, UIE, etc.). Returning from that function should reboot or don't return from it. Move UIE and __div0 for ARM to its own file. 2009-01-08 10:15:32 +00:00
timer-pnx0101.c Put TIMER_FREQ definition in CPU-specific config, and remove timer-target.h 2009-06-29 14:30:12 +00:00