1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/arm/as3525
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
..
sansa-c200v2 Enable display and backlight on panic. 2010-06-18 13:45:24 +00:00
sansa-clip Sansa Clip: simplify matrix key scan 2011-12-13 23:12:21 +00:00
sansa-clipplus Sansa clip+: do not set GPIO B7 in the display driver, it's already used for FM radio I2C 2011-04-02 08:24:14 +00:00
sansa-clipv2 Sansa Clip: simplify matrix key scan 2011-12-13 23:12:21 +00:00
sansa-clipzip Sansa Clip: simplify matrix key scan 2011-12-13 23:12:21 +00:00
sansa-e200v2 Fuze*/e200v2: remove unused lcd_set_contrast() 2010-07-14 06:48:36 +00:00
sansa-fuze Enable display and backlight on panic. 2010-06-18 13:45:24 +00:00
sansa-fuzev2 AMS: consistently use bitclr32/bitset32/bitmod32 for register CCU_IO (instead of using |= or &= ) 2011-04-18 21:13:40 +00:00
sansa-m200v4 Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
adc-target.h Sansa AMS: use the AS3514 ADC driver 2008-11-10 20:55:56 +00:00
app.lds Get the linker files that slipped through in r31337. 2011-12-17 02:00:59 +00:00
ascodec-as3525.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
ascodec-target.h Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
audio-as3525.c AS3525v1/v2: 2011-12-08 19:20:00 +00:00
backlight-e200v2-fuze.c FS#10306 by Thomas Martitz : button light doesn't change on SD transfers on Sansa AMS (Fuze & e200v2) 2009-06-18 22:33:02 +00:00
boot.lds Get the linker files that slipped through in r31337. 2011-12-17 02:00:59 +00:00
button-clip.c Clipv2: fix buttons broken by me in r31235 2011-12-14 21:04:04 +00:00
button-e200v2-fuze.c Fuzev2: Scrollwheel works like a charm :) 2010-04-01 16:07:56 +00:00
clock-target.h revert r28834 because it causes problems with uSD 2010-12-29 16:07:15 +00:00
dbop-as3525.c DBOP noise on C200v2 goes away if we precharge long enough. 2010-06-27 02:50:24 +00:00
dbop-as3525.h Sansa AMS: Time has shown that switching between 16 and 32bit mode costs much time (due to the micro delay needed), so do 32bit transfers unconditionally for lcd updates at the cost of updating slightly larger rectangles (gives upto 15% speed up, nearly at maximum now). 2010-01-07 22:21:41 +00:00
debug-as3525.c Sansa clip zip: show AMSv2 variant in debug menu 2011-11-02 22:40:35 +00:00
debug-target.h Move dbg_hw_info() into target tree. FS#11735 by me 2011-06-05 10:26:06 +00:00
dma-pl081.c Deal with a complication when transferring recording method from PP5024: since the FIFO POP is always read until empty, keep track of sample parity instead of always saving the first one in the FIFO upon entering the ISR or else the first of a duplicate that is also the last in the FIFO would get duplicated. Also, give top priority to audio interrupts in all cases. 2011-12-12 20:12:22 +00:00
dma-target.h AS3525: Implement a true audio pause and full-resolution audio tick. Take care of a few atomic hotspots. 2011-01-19 09:15:23 +00:00
fmradio-i2c-as3525.c FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip) 2011-12-17 20:24:19 +00:00
i2s-as3525.c Fix Clip firmware building by adding missing symbols 2008-11-10 11:04:43 +00:00
kernel-as3525.c AMS SoC's: Some register bit changes need interrupt protection: timer API and CGU_PERI. 2010-07-02 06:00:00 +00:00
lcd-as-e200v2-fuze-fuzev2.S FS#11335 by me: make ARM assembly functions thumb-friendly 2010-06-11 04:41:36 +00:00
lcd-clip.h lcd-clip.h: mentions clipv2 2010-07-22 17:17:31 +00:00
lcd-fuze.c Fuze*/e200v2: remove unused lcd_set_contrast() 2010-07-14 06:48:36 +00:00
lcd-fuze.h Fuzev1/v2 : lcd_set_flip() 2010-05-29 13:43:18 +00:00
lcd-ssd1303.c Sansa clip+: fix display brightness for players with newer OLED controller type (and reorganise the variant detection a bit in the process) 2010-07-22 15:31:24 +00:00
memory-init.S Initial framework for the Sandisk Sansa Clip Zip 2011-08-27 16:21:19 +00:00
pcm-as3525.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
power-as3525.c as3525v2: RTC alarm 2010-05-22 00:28:03 +00:00
powermgmt-target.h Initial framework for the Sandisk Sansa Clip Zip 2011-08-27 16:21:19 +00:00
scrollwheel-as3525.c Fix FS#12351: The poweroff timer was not reset on scroll wheel activity for e200 and simulator. Thanks to Nick Peskett. 2011-10-28 17:23:40 +00:00
sd-as3525.c Deal with a complication when transferring recording method from PP5024: since the FIFO POP is always read until empty, keep track of sample parity instead of always saving the first one in the FIFO upon entering the ISR or else the first of a duplicate that is also the last in the FIFO would get duplicated. Also, give top priority to audio interrupts in all cases. 2011-12-12 20:12:22 +00:00
sd-as3525v2.c AMSv2: enable storage write in bootloader 2011-12-18 21:35:51 +00:00
system-as3525.c FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip) 2011-12-17 20:24:19 +00:00
system-target.h firewire/usb_remove/insert_int: move to system-target.h 2011-12-31 18:44:12 +00:00
timer-as3525.c AMS SoC's: Some register bit changes need interrupt protection: timer API and CGU_PERI. 2010-07-02 06:00:00 +00:00
tuner-as3525v2.c typo 2011-12-15 19:42:21 +00:00
usb-as3525.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
usb-drv-as3525.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
usb-drv-as3525.h Merge functionality of wakeups and semaphores-- fewer APIs and object types. semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. 2011-03-02 08:49:38 +00:00