rockbox/apps/plugins
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
..
beatbox FS#12273 - use buflib for font storage. thanks to the testers :) 2011-09-24 13:19:34 +00:00
bitmaps Sansa Clip Zip: enable all plugins 2011-12-02 20:28:20 +00:00
chessbox Make local functions static in clock and chessbox plugin 2011-12-31 20:29:08 +00:00
clock Make local functions static in clock and chessbox plugin 2011-12-31 20:29:08 +00:00
doom Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
fft Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
fractals Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
frotz Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
goban plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
imageviewer Fix warnings from r31453 2011-12-28 11:47:35 +00:00
lib Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
lua Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
midi Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
mikmod FS#12273 - use buflib for font storage. thanks to the testers :) 2011-09-24 13:19:34 +00:00
mpegplayer Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
pacbox Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
pdbox Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
pictureflow Fix warnings from r31453 2011-12-28 11:47:35 +00:00
reversi Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
rockboy plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
searchengine
shortcuts plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
sudoku Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
text_viewer fuze+: keymap cleanup, correction and simplification (FS #12504 by Jean-Louis Biasini) 2012-01-02 11:09:55 +00:00
zxbox Fix messed up zxbox keymaps. Fixes fuze+ red also. 2011-12-24 12:34:16 +00:00
alarmclock.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
alpine_cdc.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
battery_bench.c Enable (and fix) battery_bench on hosted targets. 2011-12-31 13:35:19 +00:00
bench_mem_jpeg.c
bench_scaler.c
blackjack.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
boomshine.lua
bounce.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
brickmania.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
bubbles.c Sansa Clip Zip: enable all plugins 2011-12-02 20:28:20 +00:00
BUILD_OVERLAY
calculator.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
calendar.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
CATEGORIES
chessbox.c
chessclock.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
chip8.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
chopper.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
clix.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
codebuster.c
credits.c
credits.pl
crypt_firmware.c
cube.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
demystify.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
dice.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
dict.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
disktidy.c disktidy: don't use "abort" for variable name as it might conflict 2011-12-14 04:42:03 +00:00
disktidy.config Revert r31239 and r31250. Selecting ALL in disktidy used to be generally safe for most people, and these changes change that, making it easy to delete most or all of a user's music. This is a *very* bad idea. 2011-12-26 00:03:28 +00:00
elfdep.pl
euroconverter.c
fire.c Fix warnings 2011-10-15 20:51:12 +00:00
fireworks.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
firmware_flash.c
flipit.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
goban.c
greyscale.c
helloworld.c
helloworld.lua
invadrox.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
iriver_flash.c
iriverify.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
jackpot.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
jewels.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
keybox.c Fix further 'variable set but not used' warnings reported from GCC 4.6.0. 2011-05-01 13:48:28 +00:00
lamp.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
logo.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
lrcplayer.c Update lyrics player plugin for FONT_UI deprecation in r30932 (fix for FS#12374) 2011-11-10 02:50:30 +00:00
matrix.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
maze.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
mazezam.c
md5sum.c
metronome.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
minesweeper.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
mosaique.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
mp3_encoder.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
nim.c
oscilloscope.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
pegbox.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
pictureflow.c
pitch_detector.c AS3525v1/v2: 2011-12-08 19:20:00 +00:00
plasma.c Fix warnings 2011-10-15 20:51:12 +00:00
plugin.lds Sandisk Sansa Connect port (FS #12363) 2011-11-16 14:08:01 +00:00
plugin_crt0.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
plugins.make Adjust a few makefiles to generate smaller (upto 80%) binaries on RaaA through 2012-01-03 21:15:11 +00:00
pong.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
properties.c file properties: display correctly file/folder sizes > 2GB 2011-12-26 23:39:43 +00:00
random_folder_advance_config.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
remote_control.c
resistor.c Fix FS#11675 : LED resistor calculator does not wait for keypress. Thanks to Michael Chicoine for reporting the bug. 2011-12-02 01:58:07 +00:00
robotfindskitten.c
rockblox.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
rockblox1d.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
rockbox-fonts.config
rockbox_flash.c
rockboy.c
rocklife.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
rockpaint.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
search.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
settings_dumper.c
shopper.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
sliding_puzzle.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
snake.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
snake2.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
snake2.levels
snow.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
sokoban.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
sokoban.levels
solitaire.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
sort.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
SOURCES Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
SOURCES.app_build Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
spacerocks.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
splitedit.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
star.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
starfield.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
stats.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
stopwatch.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
stopwatch.lua
SUBDIRS Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
SUBDIRS.app_build Fix warning about missing newline at the EOF 2012-01-03 20:59:09 +00:00
superdom.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
test_boost.c
test_codec.c rbpaths: Add new special dir HOME_DIR for RaaA. 2011-12-25 20:11:18 +00:00
test_core_jpeg.c
test_disk.c rbpaths: Add new special dir HOME_DIR for RaaA. 2011-12-25 20:11:18 +00:00
test_fps.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
test_gfx.c rbpaths: Add new special dir HOME_DIR for RaaA. 2011-12-25 20:11:18 +00:00
test_grey.c rbpaths: Add new special dir HOME_DIR for RaaA. 2011-12-25 20:11:18 +00:00
test_greylib_bitmap_scale.c
test_mem.c
test_mem_jpeg.c
test_resize.c
test_sampr.c
test_scanrate.c
test_touchscreen.c
test_viewports.c
test_viewports.lua
text_editor.c
theme_remove.c
vbrfix.c GSoC/Buflib: Replace all direct accesses to audiobuf with buffer API functions. 2011-08-14 15:13:00 +00:00
video.c Fix warnings 2011-10-15 20:51:12 +00:00
viewers.config
vu_meter.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
wav2wv.c
wavplay.c
wavrecord.c
wavview.c plugins: make local functions static for metronome, rockblox1d, wavview 2011-10-04 19:33:52 +00:00
wormlet.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
xobox.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
zxbox.c