Commit graph

27 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
b1af93c314 Disable the backlight before powering off the Player/Studio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4877 a1c6a512-1295-4272-9138-f99709370657
2004-07-14 10:06:02 +00:00
Linus Nielsen Feltzing
111a972b65 Made set_irq_level() an inline function, and optimized it by removing the bit shifts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4330 a1c6a512-1295-4272-9138-f99709370657
2004-03-02 11:32:59 +00:00
Linus Nielsen Feltzing
a258fe1887 Better charging feedback for FM/V2 devices
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4296 a1c6a512-1295-4272-9138-f99709370657
2004-02-05 13:44:04 +00:00
Jörg Hohensohn
816234f431 oops, a typo made the player build fail
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4097 a1c6a512-1295-4272-9138-f99709370657
2003-12-03 18:50:19 +00:00
Jörg Hohensohn
44298163ba No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo: remove now false voltage reading from charging screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
2003-12-03 01:03:54 +00:00
Jörg Hohensohn
d9d63560fe a side effect in usb_enable() (writing back a "1" while reading a pulled-up input) masked a bug in power_init(), it would have turned off the disk with flash start. Became appearing while converting port access to and_b(), which touches only one byte.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4027 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 21:09:01 +00:00
Linus Nielsen Feltzing
bef7ab0c26 The code police strikes back
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 12:15:24 +00:00
Jörg Hohensohn
75bab49a54 set/clear port bits with atomic instructions instead of read-modify-write, saves time+space, allows port usage in ISR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
2003-11-06 01:34:50 +00:00
Jörg Hohensohn
9ace15871d cosmetic: moved my port inits to the "new" init function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3982 a1c6a512-1295-4272-9138-f99709370657
2003-10-21 21:03:42 +00:00
Linus Nielsen Feltzing
53ee344743 Slightly more correct initialization of the power/charging code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3940 a1c6a512-1295-4272-9138-f99709370657
2003-08-25 08:57:49 +00:00
Mats Lidell
bd49e5f83b ide_power_enable for simulator added.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3851 a1c6a512-1295-4272-9138-f99709370657
2003-07-20 00:08:47 +00:00
Jörg Hohensohn
61750ac07d one more missing init, prevented powering down the disk
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3839 a1c6a512-1295-4272-9138-f99709370657
2003-07-17 20:15:57 +00:00
Jörg Hohensohn
545efb6c28 port inits for cold start ability
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
2003-06-26 21:29:13 +00:00
Linus Nielsen Feltzing
70e3331fa1 Fixed bug #688807, now the Idle poweroff works on FM recorder. Also disabled ATA-poweroff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3312 a1c6a512-1295-4272-9138-f99709370657
2003-02-21 01:12:00 +00:00
Uwe Freese
cc9b62f6b2 Mike Holden's patch that corrects the FM charger plugged symbol
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3251 a1c6a512-1295-4272-9138-f99709370657
2003-02-13 21:45:19 +00:00
Daniel Stenberg
aaa8443af9 Based on Ludovic Lange excellent work, I've modified things to increase
likeliness that this works on an FM Recorder.

Reports please!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3143 a1c6a512-1295-4272-9138-f99709370657
2003-01-21 19:37:29 +00:00
Daniel Stenberg
d7b4645f5c Ludovic Lange's initial code for FM Recorder, edited and adjusted by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3110 a1c6a512-1295-4272-9138-f99709370657
2003-01-16 15:11:29 +00:00
Linus Nielsen Feltzing
297a256729 More sensible (but probably still not working) power off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2419 a1c6a512-1295-4272-9138-f99709370657
2002-09-25 19:28:01 +00:00
Heikki Hannikainen
39243bceed Made battery_level() use the power history table to get an average battery level over the last 3 minutes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1585 a1c6a512-1295-4272-9138-f99709370657
2002-08-07 11:22:26 +00:00
Heikki Hannikainen
3f809e716d Added battery charger code for the recorder and battery voltage statistics keeping for all platforms.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1546 a1c6a512-1295-4272-9138-f99709370657
2002-08-06 10:50:50 +00:00
Linus Nielsen Feltzing
ec370c70fe charger_inserted() used the wrong ADC channel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1489 a1c6a512-1295-4272-9138-f99709370657
2002-07-29 12:54:57 +00:00
Linus Nielsen Feltzing
5cf6b411ac Added battery_level_safe() function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1480 a1c6a512-1295-4272-9138-f99709370657
2002-07-28 15:17:24 +00:00
Linus Nielsen Feltzing
96763eadce New voltage levels for full and empty battery
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1457 a1c6a512-1295-4272-9138-f99709370657
2002-07-26 14:54:25 +00:00
Linus Nielsen Feltzing
703704d4f6 Slightly different battery level range
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1396 a1c6a512-1295-4272-9138-f99709370657
2002-07-22 15:33:14 +00:00
Björn Stenberg
208cb91192 battery_level() would sometimes return wrong value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1375 a1c6a512-1295-4272-9138-f99709370657
2002-07-17 11:13:56 +00:00
Linus Nielsen Feltzing
4edf8aebf5 Added power_off() and lowered the FULL limit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1337 a1c6a512-1295-4272-9138-f99709370657
2002-07-05 07:10:22 +00:00
Linus Nielsen Feltzing
7cafe7aa2f First version
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1333 a1c6a512-1295-4272-9138-f99709370657
2002-07-04 16:09:23 +00:00